summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-09-02 08:46:58 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-09-02 10:06:33 (GMT)
commit0da575d9e8b391a378007bbf097b936b9ab82931 (patch)
treec08b15c3c10d67cf5e6363824927d9c471447ce5 /src/corelib
parent68827cde1a3464330d200c0916cf78ae240f24ad (diff)
downloadQt-0da575d9e8b391a378007bbf097b936b9ab82931.zip
Qt-0da575d9e8b391a378007bbf097b936b9ab82931.tar.gz
Qt-0da575d9e8b391a378007bbf097b936b9ab82931.tar.bz2
QTextStreamPrivate: Removed unnecessary condition
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/io/qtextstream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qtextstream.cpp b/src/corelib/io/qtextstream.cpp
index 72388b5..c70804a 100644
--- a/src/corelib/io/qtextstream.cpp
+++ b/src/corelib/io/qtextstream.cpp
@@ -937,7 +937,7 @@ inline bool QTextStreamPrivate::putString(const QString &s, bool number)
// handle padding
int padSize = fieldWidth - s.size();
if (padSize > 0) {
- QString pad(padSize > 0 ? padSize : 0, padChar);
+ QString pad(padSize, padChar);
if (fieldAlignment == QTextStream::AlignLeft) {
tmp.append(QString(padSize, padChar));
} else if (fieldAlignment == QTextStream::AlignRight