aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/TextBox.cc
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2010-09-05 08:49:05 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2010-09-05 08:49:05 (GMT)
commit8feb0b8c83559e44bc6b2fc418c9cf7b6b46a03c (patch)
treef6a2ba871afcf5dd16ca9ea2754938cc66c1310a /src/FbTk/TextBox.cc
parent83656fc0e817c2a00a315176e651881cdfc804eb (diff)
downloadfluxbox-8feb0b8c83559e44bc6b2fc418c9cf7b6b46a03c.zip
fluxbox-8feb0b8c83559e44bc6b2fc418c9cf7b6b46a03c.tar.bz2
avoid constructing new strings implicit
Diffstat (limited to 'src/FbTk/TextBox.cc')
-rw-r--r--src/FbTk/TextBox.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/TextBox.cc b/src/FbTk/TextBox.cc
index 87ad609..87e18e8 100644
--- a/src/FbTk/TextBox.cc
+++ b/src/FbTk/TextBox.cc
@@ -369,7 +369,7 @@ void TextBox::adjustEndPos() {
369 369
370void TextBox::adjustStartPos() { 370void TextBox::adjustStartPos() {
371 371
372 int text_width = font().textWidth(text().c_str(), m_end_pos); 372 int text_width = font().textWidth(text(), m_end_pos);
373 if (text_width < static_cast<signed>(width())) 373 if (text_width < static_cast<signed>(width()))
374 return; 374 return;
375 375