summaryrefslogtreecommitdiff
path: root/src/text.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-27 21:39:10 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-27 21:39:10 +0300
commitf2dba51be00b6c67b6d1b8924cac8019a3bcd000 (patch)
treebc40b96606b74c80e60fb21064b1e8883dee2db6 /src/text.cpp
parent420664f4025b261674e0cdea503d43fb95beae38 (diff)
downloadplus-f2dba51be00b6c67b6d1b8924cac8019a3bcd000.tar.gz
plus-f2dba51be00b6c67b6d1b8924cac8019a3bcd000.tar.bz2
plus-f2dba51be00b6c67b6d1b8924cac8019a3bcd000.tar.xz
plus-f2dba51be00b6c67b6d1b8924cac8019a3bcd000.zip
Add strong typed bool type Move.
Diffstat (limited to 'src/text.cpp')
-rw-r--r--src/text.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/text.cpp b/src/text.cpp
index bec055f60..8dca7d366 100644
--- a/src/text.cpp
+++ b/src/text.cpp
@@ -134,9 +134,10 @@ void Text::setColor(const Color *const color)
}
}
-void Text::adviseXY(const int x, const int y, const bool move)
+void Text::adviseXY(const int x, const int y,
+ const Move move)
{
- if (textManager && move)
+ if (textManager && move == Move_true)
{
textManager->moveText(this, x - mXOffset, y);
}