From 3b94fd86f3bc9ea88d88eb7ae31a1f4fdbbc7f7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Wed, 3 Nov 1999 17:08:12 +0000 Subject: [PATCH] pass with c_str from compare to compare git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@287 a592a061-630c-0410-9148-cb99ea01b6c8 --- ChangeLog | 6 ++++++ src/support/lyxstring.C | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index aace30f3af..9b18bad7ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +1999-11-03 Lars Gullik Bjønnes + + * src/support/lyxstring.C (compare): pass c_str() + (compare): pass c_str + (compare): pass c_str + 1999-11-03 Jean-Marc Lasgouttes * src/support/DebugStream.C: was not included correctly. diff --git a/src/support/lyxstring.C b/src/support/lyxstring.C index 2ed6bc9d8f..1d12bd51d2 100644 --- a/src/support/lyxstring.C +++ b/src/support/lyxstring.C @@ -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); }