]> git.lyx.org Git - lyx.git/blobdiff - src/support/LSubstring.C
in addition to the changes mentioned in ChangeLog, there is the usual batch of whites...
[lyx.git] / src / support / LSubstring.C
index b2c2ef05de9133d01395e6c15a26c7ffbb022040..6c5509fdadafc90f7c4426d8dee2aae40ae642c3 100644 (file)
@@ -21,14 +21,14 @@ LSubstring::LSubstring(string & s, size_type i, size_type l)
 }
 
 
-LSubstring::LSubstring(string & s, string & s2)
+LSubstring::LSubstring(string & s, string const & s2)
        : ps(&s), n(s2.length())
 {
        pos = s.find(s2);
 }
 
 
-LSubstring::LSubstring(string & s, char * p)
+LSubstring::LSubstring(string & s, string::value_type const * p)
        : ps(&s)
 {
        n = strlen(p);
@@ -36,7 +36,7 @@ LSubstring::LSubstring(string & s, char * p)
 }
 
 
-LSubstring::LSubstring(string & s, LRegex & r)
+LSubstring::LSubstring(string & s, LRegex const & r)
        : ps(&s)
 {
        LRegex::MatchPair res = r.first_match(s);
@@ -82,13 +82,3 @@ LSubstring::operator string() const
 {
        return string(*ps, pos, n); // copy from *ps
 }
-
-
-#if 0
-LSubstring::operator char const * () const
-{
-       static string tr;
-       tr.assign(*ps, pos, n);
-       return tr.c_str();
-}
-#endif