]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlSearch.C
fix crash due to invalidated iterator
[lyx.git] / src / frontends / controllers / ControlSearch.C
index 0002aaa0cd8e47dcab310f86646400a065076e76..b0e46a52dcc0680f0ef0d5baa5c7f834a7bdb4c2 100644 (file)
@@ -17,6 +17,8 @@
 
 using std::string;
 
+namespace lyx {
+namespace frontend {
 
 ControlSearch::ControlSearch(Dialog & parent)
        : Dialog::Controller(parent)
@@ -26,8 +28,8 @@ ControlSearch::ControlSearch(Dialog & parent)
 void ControlSearch::find(string const & search, bool casesensitive,
                         bool matchword, bool forward)
 {
-       string const data = lyx::find::find2string(search, casesensitive,
-                                                  matchword, forward);
+       string const data = find::find2string(search, casesensitive,
+                                             matchword, forward);
        kernel().dispatch(FuncRequest(LFUN_WORD_FIND, data));
 }
 
@@ -37,7 +39,10 @@ void ControlSearch::replace(string const & search, string const & replace,
                            bool forward, bool all)
 {
        string const data =
-               lyx::find::replace2string(search, replace, casesensitive,
-                                         matchword, all, forward);
+               find::replace2string(search, replace, casesensitive,
+                                    matchword, all, forward);
        kernel().dispatch(FuncRequest(LFUN_WORD_REPLACE, data));
 }
+
+} // namespace frontend
+} // namespace lyx