From e5b3cdf6500f7d54a45b393a2b042f918919f3d4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Tue, 26 May 2009 16:19:03 +0000 Subject: [PATCH] constify GuiPrintNomencl::isValid() git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29852 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiPrintNomencl.cpp | 6 +++--- src/frontends/qt4/GuiPrintNomencl.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/frontends/qt4/GuiPrintNomencl.cpp b/src/frontends/qt4/GuiPrintNomencl.cpp index ed90eede86..8b80a8d874 100644 --- a/src/frontends/qt4/GuiPrintNomencl.cpp +++ b/src/frontends/qt4/GuiPrintNomencl.cpp @@ -129,11 +129,11 @@ void GuiPrintNomencl::applyView() } -bool GuiPrintNomencl::isValid() +bool GuiPrintNomencl::isValid() const { - return (setWidthCO->itemData( + return setWidthCO->itemData( setWidthCO->currentIndex()).toString() != "custom" - || !valueLE->text().isEmpty()); + || !valueLE->text().isEmpty(); } diff --git a/src/frontends/qt4/GuiPrintNomencl.h b/src/frontends/qt4/GuiPrintNomencl.h index bd4e031078..a037140616 100644 --- a/src/frontends/qt4/GuiPrintNomencl.h +++ b/src/frontends/qt4/GuiPrintNomencl.h @@ -49,7 +49,7 @@ private: /// bool isBufferDependent() const { return true; } /// - bool isValid(); + bool isValid() const; /// InsetCommandParams params_; -- 2.39.5