]> git.lyx.org Git - features.git/commitdiff
pass with c_str from compare to compare
authorLars Gullik Bjønnes <larsbj@gullik.org>
Wed, 3 Nov 1999 17:08:12 +0000 (17:08 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Wed, 3 Nov 1999 17:08:12 +0000 (17:08 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@287 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
src/support/lyxstring.C

index aace30f3af57bd3b69e1d6ccd45b9cd574f1b185..9b18bad7ffd020ee545746fa38b80b29034b0e55 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1999-11-03  Lars Gullik Bjønnes  <larsbj@lyx.org>
+
+       * src/support/lyxstring.C (compare): pass c_str()
+       (compare): pass c_str
+       (compare): pass c_str
+
 1999-11-03  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
        * src/support/DebugStream.C: <config.h> was not included correctly.
index 2ed6bc9d8f7f0af218e850a96b34a594bf178987..1d12bd51d24507c62975e7b640b24c347fd983ef 100644 (file)
@@ -1418,7 +1418,7 @@ int lyxstring::compare(lyxstring const & str) const
 {
        TestlyxstringInvariant(this);
 
-       return compare(0, rep->sz, str.rep->s, str.rep->sz);
+       return compare(0, rep->sz, str.c_str(), str.rep->sz);
 }
 
 
@@ -1435,7 +1435,7 @@ int lyxstring::compare(size_type pos, size_type n, lyxstring const & str) const
 {
        TestlyxstringInvariant(this);
 
-       return compare(pos, n, str.rep->s, str.rep->sz);
+       return compare(pos, n, str.c_str(), str.rep->sz);
 }
 
 
@@ -1444,7 +1444,7 @@ int lyxstring::compare(size_type pos, size_type n, lyxstring const & str,
 {
        TestlyxstringInvariant(this);
 
-       return compare(pos, n, str.rep->s + pos2, n2);
+       return compare(pos, n, str.c_str() + pos2, n2);
 }