[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Tue Dec 6 06:45:07 CET 2005
SVN commit 485918 by staikos:
don't create a data stream if we don't need it
M +1 -1 kstviewobjectimagedrag.cpp
--- trunk/extragear/graphics/kst/kst/kstviewobjectimagedrag.cpp #485917:485918
@@ -111,7 +111,6 @@
}
QByteArray rc;
- QDataStream ds(rc, IO_WriteOnly);
#if QT_VERSION < 0x030200
KTempFile tf;
pm.save(tf.name(), KImageIO::typeForMime(mimeType).latin1());
@@ -123,6 +122,7 @@
}
QFile::remove(tf.name());
#else
+ QDataStream ds(rc, IO_WriteOnly);
pm.save(ds.device(), KImageIO::typeForMime(mimeType).latin1());
#endif
More information about the Kst
mailing list