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/ClockTool.cc | |
parent | 83656fc0e817c2a00a315176e651881cdfc804eb (diff) | |
download | fluxbox_pavel-8feb0b8c83559e44bc6b2fc418c9cf7b6b46a03c.zip fluxbox_pavel-8feb0b8c83559e44bc6b2fc418c9cf7b6b46a03c.tar.bz2 |
avoid constructing new strings implicit
Diffstat (limited to 'src/ClockTool.cc')
-rw-r--r-- | src/ClockTool.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ClockTool.cc b/src/ClockTool.cc index c2d029f..1e4dd58 100644 --- a/src/ClockTool.cc +++ b/src/ClockTool.cc | |||
@@ -255,7 +255,7 @@ void ClockTool::update(FbTk::Subject *subj) { | |||
255 | unsigned int new_width = m_button.width(); | 255 | unsigned int new_width = m_button.width(); |
256 | unsigned int new_height = m_button.height(); | 256 | unsigned int new_height = m_button.height(); |
257 | translateSize(orientation(), new_width, new_height); | 257 | translateSize(orientation(), new_width, new_height); |
258 | new_width = m_theme->font().textWidth(text.c_str(), text.size()); | 258 | new_width = m_theme->font().textWidth(text, text.size()); |
259 | translateSize(orientation(), new_width, new_height); | 259 | translateSize(orientation(), new_width, new_height); |
260 | if (new_width != m_button.width() || new_height != m_button.height()) { | 260 | if (new_width != m_button.width() || new_height != m_button.height()) { |
261 | resize(new_width, new_height); | 261 | resize(new_width, new_height); |