Kaydet (Commit) 4af59f9d authored tarafından Caolán McNamara's avatar Caolán McNamara

drop OSL_ENSURE about STRING_MAXLEN

Change-Id: I945bcf3af5f8b2228c8c8c5958ff3aa60dfae2c2
üst 3391f02e
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include <math.h> #include <math.h>
#include <svl/zforlist.hxx> #include <svl/zforlist.hxx>
#include <tools/string.hxx>
#include "attrib.hxx" #include "attrib.hxx"
#include "dif.hxx" #include "dif.hxx"
#include "docpool.hxx" #include "docpool.hxx"
...@@ -371,7 +370,6 @@ TOPIC DifParser::GetNextTopic( void ) ...@@ -371,7 +370,6 @@ TOPIC DifParser::GetNextTopic( void )
case S_Data: case S_Data:
OSL_ENSURE( aLine.getLength() >= 2, OSL_ENSURE( aLine.getLength() >= 2,
"+GetNextTopic(): <String> ist zu kurz!" ); "+GetNextTopic(): <String> ist zu kurz!" );
OSL_ENSURE( aLine.getLength() - 2 <= STRING_MAXLEN, "GetNextTopic(): line doesn't fit into data");
if( aLine.getLength() > 2 ) if( aLine.getLength() > 2 )
aData = aLine.copy( 1, aLine.getLength() - 2 ); aData = aLine.copy( 1, aLine.getLength() - 2 );
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment