summaryrefslogtreecommitdiff
path: root/src/gui/speechbubble.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-29 23:40:41 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-29 23:40:41 +0300
commit1feb7f7edc5f8f383e594b256ef4cab0fae75b99 (patch)
tree68fe26fdd1ef25645deef894c296b6fbc80b0e13 /src/gui/speechbubble.cpp
parent41044107cc0a17125ebd806c9934b6eb636dafe6 (diff)
downloadmanaplus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.gz
manaplus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.bz2
manaplus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.xz
manaplus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.zip
Add const to more classes.
Diffstat (limited to 'src/gui/speechbubble.cpp')
-rw-r--r--src/gui/speechbubble.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/speechbubble.cpp b/src/gui/speechbubble.cpp
index 6188b5c2d..31877f310 100644
--- a/src/gui/speechbubble.cpp
+++ b/src/gui/speechbubble.cpp
@@ -52,14 +52,15 @@ SpeechBubble::SpeechBubble():
add(mSpeechBox);
}
-void SpeechBubble::setCaption(const std::string &name, const gcn::Color *color)
+void SpeechBubble::setCaption(const std::string &name,
+ const gcn::Color *const color)
{
mCaption->setCaption(name);
mCaption->adjustSize();
mCaption->setForegroundColor(*color);
}
-void SpeechBubble::setText(const std::string &text, bool showName)
+void SpeechBubble::setText(const std::string &text, const bool showName)
{
if (text == mText && (mCaption->getWidth() <= mSpeechBox->getMinWidth()))
return;