QCString -> QByteArray

David Faure faure at kde.org
Mon Feb 12 14:57:10 CET 2007


On Monday 12 February 2007, David Faure wrote:
>        mBodyNew.duplicate( aStr );
>        mBodyNew.truncate( mBodyNew.size() -1 );

Actuallly the correct code (in case aStr is null) is

       mBodyNew.duplicate( aStr );
       if ( mBodyNew.size() > 0 )
           mBodyNew.truncate( mBodyNew.size() -1 );

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).


More information about the Kde-optimize mailing list