[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Thu Jan 6 19:38:13 CET 2005
CVS commit by arwalker:
QString::reserve( ) only supported since Qt 3.2
M +3 -0 kstdatacollection-gui.cpp 1.17
--- kdeextragear-2/kst/kst/kstdatacollection-gui.cpp #1.16:1.17
@@ -18,4 +18,5 @@
// include files for Qt
#include <qfile.h>
+#include <qglobal.h>
// include files for KDE
@@ -161,5 +162,7 @@ int KST::vectorsToFile(const KstVectorLi
ltxt[ltxt.length() - 1] = '\n';
f->writeBlock(ltxt.ascii(), ltxt.length());
+#if QT_VERSION >= 0x030200
ltxt.reserve(vcnt*17);
+#endif
for (int line = 0; line < maxlen; ++line) {
ltxt.truncate(0);
More information about the Kst
mailing list