summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-01-21 13:16:09 (GMT)
committerfluxgen <fluxgen>2004-01-21 13:16:09 (GMT)
commit11a7029b22d1e4a25cbabb7e6af8ee3e69994d1f (patch)
tree258d48a80952211cf787110ac995e54ca85eea7a /src
parent87629ad23c1db3072f9d2b9cf827ba64773ebf97 (diff)
downloadfluxbox_lack-11a7029b22d1e4a25cbabb7e6af8ee3e69994d1f.zip
fluxbox_lack-11a7029b22d1e4a25cbabb7e6af8ee3e69994d1f.tar.bz2
using empty instead of size
Diffstat (limited to 'src')
-rw-r--r--src/CommandDialog.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CommandDialog.cc b/src/CommandDialog.cc
index 813fbd0..943302b 100644
--- a/src/CommandDialog.cc
+++ b/src/CommandDialog.cc
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: CommandDialog.cc,v 1.3 2004/01/02 13:53:21 fluxgen Exp $ 23// $Id: CommandDialog.cc,v 1.4 2004/01/21 13:16:09 fluxgen Exp $
24 24
25#include "CommandDialog.hh" 25#include "CommandDialog.hh"
26 26
@@ -173,7 +173,7 @@ void CommandDialog::tabComplete() {
173 if (first == string::npos) 173 if (first == string::npos)
174 first = 0; 174 first = 0;
175 string prefix = FbTk::StringUtil::toLower(m_textbox.text().substr(first, m_textbox.cursorPosition())); 175 string prefix = FbTk::StringUtil::toLower(m_textbox.text().substr(first, m_textbox.cursorPosition()));
176 if (prefix.size() == 0) { 176 if (prefix.empty()) {
177 XBell(FbTk::App::instance()->display(), 0); 177 XBell(FbTk::App::instance()->display(), 0);
178 return; 178 return;
179 } 179 }