diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2010-09-05 08:49:05 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2010-09-05 08:49:05 (GMT) |
commit | 8feb0b8c83559e44bc6b2fc418c9cf7b6b46a03c (patch) | |
tree | f6a2ba871afcf5dd16ca9ea2754938cc66c1310a /src/FbTk/TextBox.cc | |
parent | 83656fc0e817c2a00a315176e651881cdfc804eb (diff) | |
download | fluxbox_pavel-8feb0b8c83559e44bc6b2fc418c9cf7b6b46a03c.zip fluxbox_pavel-8feb0b8c83559e44bc6b2fc418c9cf7b6b46a03c.tar.bz2 |
avoid constructing new strings implicit
Diffstat (limited to 'src/FbTk/TextBox.cc')
-rw-r--r-- | src/FbTk/TextBox.cc | 2 |
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 | ||
370 | void TextBox::adjustStartPos() { | 370 | void 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 | ||