]> git.lyx.org Git - lyx.git/commitdiff
constify GuiPrintNomencl::isValid()
authorAndré Pönitz <poenitz@gmx.net>
Tue, 26 May 2009 16:19:03 +0000 (16:19 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Tue, 26 May 2009 16:19:03 +0000 (16:19 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29852 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiPrintNomencl.cpp
src/frontends/qt4/GuiPrintNomencl.h

index ed90eede867a06d00968ee1e5b868f2e1f098074..8b80a8d874cc7b57eb4633105526e513e6f03f9e 100644 (file)
@@ -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();
 }
 
 
index bd4e03107858d19a8c717377207a76f006ca0ff1..a03714061628db7c944fb351b9767074d68a404f 100644 (file)
@@ -49,7 +49,7 @@ private:
        ///
        bool isBufferDependent() const { return true; }
        ///
-       bool isValid();
+       bool isValid() const;
 
        ///
        InsetCommandParams params_;