summaryrefslogtreecommitdiff
path: root/src/gui/speechbubble.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/speechbubble.cpp')
-rw-r--r--src/gui/speechbubble.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gui/speechbubble.cpp b/src/gui/speechbubble.cpp
index b7977d09..da472449 100644
--- a/src/gui/speechbubble.cpp
+++ b/src/gui/speechbubble.cpp
@@ -68,7 +68,7 @@ void SpeechBubble::setCaption(const std::string &name, const gcn::Color *color)
mCaption->setForegroundColor(*color);
}
-void SpeechBubble::setText(std::string text, bool showName)
+void SpeechBubble::setText(const std::string &text, bool showName)
{
if (text == mText && (mCaption->getWidth() <= mSpeechBox->getMinWidth()))
return;
@@ -98,8 +98,3 @@ void SpeechBubble::setText(std::string text, bool showName)
mCaption->setPosition(xPos, getPadding());
mSpeechArea->setDimension(gcn::Rectangle(xPos, yPos, width, height));
}
-
-unsigned int SpeechBubble::getNumRows() const
-{
- return mSpeechBox->getNumberOfRows();
-}