From 11a7029b22d1e4a25cbabb7e6af8ee3e69994d1f Mon Sep 17 00:00:00 2001 From: fluxgen <fluxgen> Date: Wed, 21 Jan 2004 13:16:09 +0000 Subject: using empty instead of size --- src/CommandDialog.cc | 4 ++-- 1 file 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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: CommandDialog.cc,v 1.3 2004/01/02 13:53:21 fluxgen Exp $ +// $Id: CommandDialog.cc,v 1.4 2004/01/21 13:16:09 fluxgen Exp $ #include "CommandDialog.hh" @@ -173,7 +173,7 @@ void CommandDialog::tabComplete() { if (first == string::npos) first = 0; string prefix = FbTk::StringUtil::toLower(m_textbox.text().substr(first, m_textbox.cursorPosition())); - if (prefix.size() == 0) { + if (prefix.empty()) { XBell(FbTk::App::instance()->display(), 0); return; } -- cgit v0.11.2