]> git.lyx.org Git - lyx.git/commitdiff
removed bogus Assert
authorLars Gullik Bjønnes <larsbj@gullik.org>
Tue, 5 Oct 1999 23:27:21 +0000 (23:27 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Tue, 5 Oct 1999 23:27:21 +0000 (23:27 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@175 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
src/support/lyxstring.C

index 8028a9833d968a840ee55f0f728300c8a86f8fd6..795a01e5e59b1fa8999d79abddee0c0290fffda3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-10-06  Lars Gullik Bjønnes  <larsbj@lyx.org>
+
+       * 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  <larsbj@lyx.org>
 
        * configure.in (Check for programs): Added a check for kpsewhich,
index 197aeebade625748628c0b82721a6f3df41c7440..7ce142daf3c1991e236256bd69b65a9b1c3ec1f1 100644 (file)
@@ -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);