aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/TextButton.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/TextButton.cc
parent83656fc0e817c2a00a315176e651881cdfc804eb (diff)
downloadfluxbox-8feb0b8c83559e44bc6b2fc418c9cf7b6b46a03c.zip
fluxbox-8feb0b8c83559e44bc6b2fc418c9cf7b6b46a03c.tar.bz2
avoid constructing new strings implicit
Diffstat (limited to 'src/FbTk/TextButton.cc')
-rw-r--r--src/FbTk/TextButton.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/TextButton.cc b/src/FbTk/TextButton.cc
index 380537e..04aa367 100644
--- a/src/FbTk/TextButton.cc
+++ b/src/FbTk/TextButton.cc
@@ -126,7 +126,7 @@ void TextButton::clearArea(int x, int y,
126 126
127 127
128unsigned int TextButton::textWidth() const { 128unsigned int TextButton::textWidth() const {
129 return font().textWidth(text().data(), text().size()); 129 return font().textWidth(text(), text().size());
130} 130}
131 131
132void TextButton::renderForeground(FbWindow &win, FbDrawable &drawable) { 132void TextButton::renderForeground(FbWindow &win, FbDrawable &drawable) {
@@ -161,7 +161,7 @@ void TextButton::drawText(int x_offset, int y_offset, FbDrawable *drawable) {
161 font().drawText(*drawable, 161 font().drawText(*drawable,
162 screenNumber(), 162 screenNumber(),
163 gc(), // graphic context 163 gc(), // graphic context
164 text().data(), textlen, // string and string size 164 text(), textlen, // string and string size
165 textx, texty, m_orientation); // position 165 textx, texty, m_orientation); // position
166} 166}
167 167