From 1feb7f7edc5f8f383e594b256ef4cab0fae75b99 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 29 Aug 2012 23:40:41 +0300 Subject: Add const to more classes. --- src/gui/speechbubble.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/speechbubble.cpp') 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; -- cgit v1.2.3-60-g2f50