From e9dc3e73b16f787bc4f20133bb76129dcdf723a2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Tue, 5 Oct 1999 23:27:21 +0000 Subject: [PATCH] removed bogus Assert git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@175 a592a061-630c-0410-9148-cb99ea01b6c8 --- ChangeLog | 5 +++++ src/support/lyxstring.C | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) 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); -- 2.39.2