]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfr1.C
removed a warning from screen and added CFLAGS in lyx.spec.in.
[lyx.git] / src / lyxfr1.C
index b455e36fd12e5a187d5da810232274955adbfed7..ee35ba89820594536181a8052c500dc860f860fa 100644 (file)
@@ -1,18 +1,18 @@
 /* This file is part of
-* ======================================================
-* 
-*           LyX, The Document Processor
-*       
-*          Copyright (C) 1995 Matthias Ettrich,
-*           Copyright (C) 1995-1998 The LyX Team.
-*
-*======================================================*/
+ * ======================================================
+ 
+ *           LyX, The Document Processor
+ *      
+ *           Copyright 1995 Matthias Ettrich,
+ *           Copyright 1995-1999 The LyX Team.
+ *
+ * ======================================================*/
 
 #include <config.h>
 
-#include <ctype.h>
-#include <string.h>
-#include <stdlib.h>
+#include <cctype>
+#include <cstring>
+#include <cstdlib>
 
 #ifdef __GNUG__
 #pragma implementation
 #include "lyxfr1.h"
 #include "lyxfunc.h"
 #include "lyxscreen.h"
-#include "error.h"
+#include "debug.h"
 #include "lyxtext.h"
 #include "gettext.h"
 #include "LyXView.h"
 #include "lyx_gui_misc.h"
 #include "minibuffer.h"
+#include "support/lstrings.h"
 
 extern BufferView *current_view; // called too many times in this file...
 extern MiniBuffer *minibuffer;
@@ -234,8 +235,7 @@ void LyXFindReplace1::SearchReplaceAllCB()
                if( replace_count == 1 ) {
                        minibuffer->Set(_("1 string has been replaced."));
                } else {
-                       string str;
-                       str += replace_count;
+                       string str = tostr(replace_count);
                        str += _(" strings have been replaced.");
                        minibuffer->Set(str);
                }