diff --git a/src/ConverterCache.cpp b/src/ConverterCache.cpp index d1a0a83686..aabe6b9042 100644 --- a/src/ConverterCache.cpp +++ b/src/ConverterCache.cpp @@ -247,7 +247,7 @@ void ConverterCache::init() } -void ConverterCache::writeIndex() +void ConverterCache::writeIndex() const { pimpl_->writeIndex(); } diff --git a/src/ConverterCache.h b/src/ConverterCache.h index f4cf525a96..72afe293e5 100644 --- a/src/ConverterCache.h +++ b/src/ConverterCache.h @@ -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 diff --git a/src/frontends/qt4/GuiInfo.cpp b/src/frontends/qt4/GuiInfo.cpp index 282f2fcf69..12672c11ca 100644 --- a/src/frontends/qt4/GuiInfo.cpp +++ b/src/frontends/qt4/GuiInfo.cpp @@ -88,9 +88,8 @@ void GuiInfo::on_nameLE_textChanged(QString const &) void GuiInfo::applyView() { InsetInfo const * ii = dynamic_cast(inset(INFO_CODE)); - if (!ii) { + if (!ii) return; - } dialogToParams(); docstring const argument = qstring_to_ucs4(type_ + ' ' + name_);