summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-17 22:00:34 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-17 22:26:06 +0300
commitef9e8793c77683b46a99daf6a57ca05facc44752 (patch)
treef152deaa1614295a3a318efada58b0b81723abaa /src/gui
parent55480eb4477b2cf85af1bcdcc5e8ec4f4ce6682d (diff)
downloadmv-ef9e8793c77683b46a99daf6a57ca05facc44752.tar.gz
mv-ef9e8793c77683b46a99daf6a57ca05facc44752.tar.bz2
mv-ef9e8793c77683b46a99daf6a57ca05facc44752.tar.xz
mv-ef9e8793c77683b46a99daf6a57ca05facc44752.zip
Fix code style.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/models/updatelistmodel.h4
-rw-r--r--src/gui/palette.cpp4
-rw-r--r--src/gui/windows/questswindow.cpp2
3 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/models/updatelistmodel.h b/src/gui/models/updatelistmodel.h
index bddc7c2a2..37d5a8d12 100644
--- a/src/gui/models/updatelistmodel.h
+++ b/src/gui/models/updatelistmodel.h
@@ -39,7 +39,9 @@ class UpdateListModel final : public ListModel
mNames(),
mServer(server)
{
- FOR_EACH(std::vector<HostsGroup>::const_iterator, it, server->updateHosts)
+ FOR_EACH(std::vector<HostsGroup>::const_iterator,
+ it,
+ server->updateHosts)
{
const HostsGroup &group = *it;
mNames.push_back(group.name);
diff --git a/src/gui/palette.cpp b/src/gui/palette.cpp
index 0e3f9560c..cedfb0f86 100644
--- a/src/gui/palette.cpp
+++ b/src/gui/palette.cpp
@@ -132,7 +132,7 @@ void Palette::advanceGradient()
else if (grad == GradientType::SPECTRUM)
{
if (colIndex % 2)
- { // falling curve
+ { // falling curve
if (delay)
{
colVal = CAST_S32(255.0 *
@@ -145,7 +145,7 @@ void Palette::advanceGradient()
}
}
else
- { // ascending curve
+ { // ascending curve
if (delay)
{
colVal = CAST_S32(255.0 * (cos(M_PI *
diff --git a/src/gui/windows/questswindow.cpp b/src/gui/windows/questswindow.cpp
index 080c0bdd2..eed82636b 100644
--- a/src/gui/windows/questswindow.cpp
+++ b/src/gui/windows/questswindow.cpp
@@ -563,7 +563,7 @@ void QuestsWindow::updateEffects()
{ // in new list exists effect for this npc
const QuestEffect *const newEffect = (*itNew).second;
if (effect != newEffect)
- { // new effects is not equal to old effect
+ { // new effects is not equal to old effect
addEffects[id] = newEffect->effectId;
removeEffects.insert(id);
}