r14951 by fschmid - Fixed Bug #8983: "QStrings initialized with 0 instead of QString::null"
scribus-commit
scribus-commit at lists.scribus.net
Wed Mar 31 22:10:51 CEST 2010
Revision: 14951
Author: fschmid
Date: 2010-03-31T20:08:12.874444Z
Commit message: Fixed Bug #8983: "QStrings initialized with 0 instead of QString::null"
Changeset:
M /trunk/Scribus/scribus/plugins/barcodegenerator/barcodegenerator.cpp
M /trunk/Scribus/scribus/plugins/barcodegenerator/barcodegenerator.h
Diffs:
Index: scribus/plugins/barcodegenerator/barcodegenerator.cpp
===================================================================
--- scribus/plugins/barcodegenerator/barcodegenerator.cpp (revision 14950)
+++ scribus/plugins/barcodegenerator/barcodegenerator.cpp (revision 14951)
@@ -317,7 +317,7 @@
bool BarcodeGenerator::paintBarcode(QString fileName, int dpi)
{
- if (fileName == QString::null)
+ if (fileName.isEmpty())
fileName = tmpFile;
QString opts("barcolor=%1 showbackground backgroundcolor=%2 textcolor=%3");
opts = opts.arg(lnColor.name().replace('#', "")) \
Index: scribus/plugins/barcodegenerator/barcodegenerator.h
===================================================================
--- scribus/plugins/barcodegenerator/barcodegenerator.h (revision 14950)
+++ scribus/plugins/barcodegenerator/barcodegenerator.h (revision 14951)
@@ -104,7 +104,7 @@
\param dpi optional DPI value. Default is 72 for preview.
\retval bool true on success.
*/
- bool paintBarcode(QString fileName = "", int dpi = 72);
+ bool paintBarcode(QString fileName = QString(), int dpi = 72);
/*! \brief Create color preview.
Used for Color box feedback.
\param l A pointer to the sample QLabel
More information about the scribus-commit
mailing list