removed bogus Assert

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@175 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 1999-10-05 23:27:21 +00:00
parent c4680453ef
commit e9dc3e73b1
2 changed files with 5 additions and 1 deletions

View File

@ -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> 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
* configure.in (Check for programs): Added a check for kpsewhich, * configure.in (Check for programs): Added a check for kpsewhich,

View File

@ -116,7 +116,6 @@ void lyxstringInvariant::helper() const
Assert(object->rep); Assert(object->rep);
Assert(object->rep->s); // s is never 0 Assert(object->rep->s); // s is never 0
Assert(object->rep->res); // always some space allocated Assert(object->rep->res); // always some space allocated
Assert(strlen(object->c_str()) == object->size());
Assert(object->size() <= object->rep->res); Assert(object->size() <= object->rep->res);
Assert(object->rep->ref >= 1); // its in use so it must be referenced Assert(object->rep->ref >= 1); // its in use so it must be referenced
Assert(object->rep->ref < (1 << 8*sizeof(lyxstring::Srep::ref)) - 1); Assert(object->rep->ref < (1 << 8*sizeof(lyxstring::Srep::ref)) - 1);