From bf961531857d2ccd356dc1b65c14b8ea37a805fd Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Wed, 5 Mar 2008 19:00:11 +0000 Subject: [PATCH] * is.at is const, is[] is a deep non-const copy git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23484 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiToolbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiToolbar.cpp b/src/frontends/qt4/GuiToolbar.cpp index 0638ef13d2..e39f5e5f30 100644 --- a/src/frontends/qt4/GuiToolbar.cpp +++ b/src/frontends/qt4/GuiToolbar.cpp @@ -547,7 +547,7 @@ void GuiLayoutBox::addItemSort(docstring const & item, bool sorted) QString is = model_->item(i, 0)->text(); while (is.compare(titem) < 0) { // e.g. --Separator-- - if (is[0].category() != QChar::Letter_Uppercase) + if (is.at(0).category() != QChar::Letter_Uppercase) break; ++i; if (i == end)