]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlThesaurus.C
fix crash due to invalidated iterator
[lyx.git] / src / frontends / controllers / ControlThesaurus.C
index fe60194256d4354549f426d52290cf30dbfdcb6b..f99770f071409a4eb84bfbb4a39ca6020c8c1a0c 100644 (file)
@@ -17,6 +17,8 @@
 
 using std::string;
 
+namespace lyx {
+namespace frontend {
 
 ControlThesaurus::ControlThesaurus(Dialog & parent)
        : Dialog::Controller(parent)
@@ -43,11 +45,11 @@ void ControlThesaurus::replace(string const & newstr)
         * deletion/change !
         */
        string const data =
-               lyx::find::replace2string(oldstr_, newstr,
-                                         true,  // case sensitive
-                                         true,  // match word
-                                         false, // all words
-                                         true); // forward
+               find::replace2string(oldstr_, newstr,
+                                    true,  // case sensitive
+                                    true,  // match word
+                                    false, // all words
+                                    true); // forward
        kernel().dispatch(FuncRequest(LFUN_WORD_REPLACE, data));
 }
 
@@ -58,3 +60,6 @@ Thesaurus::Meanings const & ControlThesaurus::getMeanings(string const & str)
                meanings_ = thesaurus.lookup(str);
        return meanings_;
 }
+
+} // namespace frontend
+} // namespace lyx