From: Lars Gullik Bjønnes Date: Tue, 5 Oct 1999 23:27:21 +0000 (+0000) Subject: removed bogus Assert X-Git-Tag: 1.6.10~22630 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e9dc3e73b16f787bc4f20133bb76129dcdf723a2;p=features.git removed bogus Assert git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@175 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/ChangeLog b/ChangeLog index 8028a9833d..795a01e5e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-10-06 Lars Gullik Bjønnes + + * src/support/lyxstring.C (helper): removed bogus Assert. strlen + does not allow '\0' chars but lyxstring and std::string does. + 1999-10-05 Lars Gullik Bjønnes * configure.in (Check for programs): Added a check for kpsewhich, diff --git a/src/support/lyxstring.C b/src/support/lyxstring.C index 197aeebade..7ce142daf3 100644 --- a/src/support/lyxstring.C +++ b/src/support/lyxstring.C @@ -116,7 +116,6 @@ void lyxstringInvariant::helper() const Assert(object->rep); Assert(object->rep->s); // s is never 0 Assert(object->rep->res); // always some space allocated - Assert(strlen(object->c_str()) == object->size()); Assert(object->size() <= object->rep->res); Assert(object->rep->ref >= 1); // its in use so it must be referenced Assert(object->rep->ref < (1 << 8*sizeof(lyxstring::Srep::ref)) - 1);