[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kabc
From:       Tobias Koenig <tokoe () kde ! org>
Date:       2004-10-05 16:48:21
Message-ID: 20041005164821.9EA61126DE () office ! kde ! org
[Download RAW message or body]

CVS commit by tokoe: 

Fix bug #87827.

"Do not attempt to resize or re-assign the array data when raw data has been set..."


  M +3 -4      ldif.cpp   1.11


--- kdelibs/kabc/ldif.cpp  #1.10:1.11
@@ -26,4 +26,6 @@
 using namespace KABC;
 
+static const char delimiter[ 3 ] = { '\n', '\n', '\n' };
+
 LDIF::LDIF()
 {
@@ -337,8 +339,5 @@ LDIF::ParseVal LDIF::nextItem()
 void LDIF::endLDIF()
 {
-  mLdif.resize( 3 );  
-  mLdif[ 0 ] = '\n';
-  mLdif[ 1 ] = '\n';
-  mLdif[ 2 ] = '\n';
+  mLdif.resetRawData( delimiter, 3 );  
   mPos = 0;
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic