]> git.lyx.org Git - features.git/commitdiff
Cosmetics and constify.
authorVincent van Ravesteijn <vfr@lyx.org>
Mon, 29 Jun 2009 23:43:23 +0000 (23:43 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Mon, 29 Jun 2009 23:43:23 +0000 (23:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30309 a592a061-630c-0410-9148-cb99ea01b6c8

src/ConverterCache.cpp
src/ConverterCache.h
src/frontends/qt4/GuiInfo.cpp

index d1a0a83686828f8834b02681441ed15218bcab14..aabe6b904220185af4d678da14589500fcc21c8f 100644 (file)
@@ -247,7 +247,7 @@ void ConverterCache::init()
 }
 
 
-void ConverterCache::writeIndex()
+void ConverterCache::writeIndex() const
 {
        pimpl_->writeIndex();
 }
index f4cf525a96074ed319a3a481b97cd4c7142cdad0..72afe293e5ae515a287d6952534a15bde6762396 100644 (file)
@@ -56,7 +56,7 @@ public:
        static void init();
 
        /// Writes the index list. This must be called on exit.
-       void writeIndex();
+       void writeIndex() const;
 
        /**
         * Add \c converted_file (\c orig_from converted to \c to_format) to
index 282f2fcf696ed9840f697bb73d65cb9538369bf2..12672c11caa5c49f9df092d42d2adf81d35e4072 100644 (file)
@@ -88,9 +88,8 @@ void GuiInfo::on_nameLE_textChanged(QString const &)
 void GuiInfo::applyView()
 {
        InsetInfo const * ii = dynamic_cast<InsetInfo const *>(inset(INFO_CODE));
-       if (!ii) {
+       if (!ii)
                return;
-       }
        
        dialogToParams();
        docstring const argument = qstring_to_ucs4(type_ + ' ' + name_);