]> git.lyx.org Git - features.git/blobdiff - src/support/lyxstring.C
small stuff
[features.git] / src / support / lyxstring.C
index cc25a90a9f543d52e2fae01a58c3b8443fb23e26..35db7f9d28749d63296c42ad0a218a6eca1130c6 100644 (file)
@@ -304,6 +304,10 @@ void lyxstring::Srep::replace(lyxstring::size_type i, lyxstring::size_type n,
 ///////////////////////////////////////
 // The lyxstring Invariant tester
 ///////////////////////////////////////
+// There are no know bugs in lyxstring now, and it have been
+// tested for a long time. so we disable the invariant checker. (Lgb)
+#undef ENABLE_ASSERTIONS
 #ifdef ENABLE_ASSERTIONS
 
 /** Testing of the lyxstring invariant
@@ -1332,6 +1336,13 @@ lyxstring & lyxstring::replace(size_type i, size_type n,
 }
 
 
+/// FY! FY! FY! go away !
+lyxstring & lyxstring::replace(size_type i, size_type n, value_type c)
+{
+       return replace(i, n, 1, c);
+}
+
+
 lyxstring & lyxstring::replace(iterator i, iterator i2, const lyxstring & str)
 {
        TestlyxstringInvariant(this);