]> git.lyx.org Git - lyx.git/blobdiff - src/support/LSubstring.C
fix a couple of hard crashes, constify local variables, whitespace changes, some...
[lyx.git] / src / support / LSubstring.C
index 648cc4efbbffcac1d110f8c9ff427e78845a6580..21c5d54c67fd1c29a0d406092bae2c8f41a20789 100644 (file)
 #include <config.h>
 #endif
 
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
 #include "LSubstring.h"
 
 
@@ -39,7 +43,7 @@ LSubstring::LSubstring(string & s, string::value_type const * p)
 LSubstring::LSubstring(string & s, LRegex const & r)
        : ps(&s)
 {
-       LRegex::MatchPair res = r.first_match(s);
+       LRegex::MatchPair const res = r.first_match(s);
        if (res.first != string::npos) {
                n = res.second;
                pos = res.first;