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

List:       kde-commits
Subject:    qt-copy/src/tools
From:       Stephan Kulow <coolo () kde ! org>
Date:       2003-05-17 6:39:10
[Download RAW message or body]

CVS commit by coolo: 

explain it


  M +5 -1      qcstring.h   1.52


--- qt-copy/src/tools/qcstring.h  #1.51:1.52
@@ -142,5 +142,9 @@ class QRegExp;
 class Q_EXPORT QCString : public QByteArray     // C string class
 {
-     QCString( const QByteArray & ) {}
+     // coolo: only added to check what KDE code is relying on
+     // it. Use QCString(ba.data(), ba.size() + 1) instead of
+     // QCString(ba) - otherwise you get crashes because of not
+     // null terminated strings
+     QCString( const QByteArray & );
 public:
     QCString() {}                               // make null string


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

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