diff options
author | Harald Fernengel <harald@trolltech.com> | 2009-08-07 14:09:45 (GMT) |
---|---|---|
committer | Harald Fernengel <harald@trolltech.com> | 2009-08-07 14:09:45 (GMT) |
commit | f99e01bccb5e2b686c0d98ea3743e9fcf48ce8d2 (patch) | |
tree | cd89492129ac3abbac37f42c890860e4a5047057 /src/tools | |
parent | 56d84a7dcbbaee6402d1d43bba879b135839ad61 (diff) | |
download | Qt-f99e01bccb5e2b686c0d98ea3743e9fcf48ce8d2.zip Qt-f99e01bccb5e2b686c0d98ea3743e9fcf48ce8d2.tar.gz Qt-f99e01bccb5e2b686c0d98ea3743e9fcf48ce8d2.tar.bz2 |
Fix build warning
gcc was complaining about format string not being a string literal.
Also fixes the small chance that error messages would be bogus if
they contain printf control characters.
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/uic/uic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/uic/uic.cpp b/src/tools/uic/uic.cpp index f789980..14576e2 100644 --- a/src/tools/uic/uic.cpp +++ b/src/tools/uic/uic.cpp @@ -184,7 +184,7 @@ DomUI *Uic::parseUiFile(QXmlStreamReader &reader) if (reader.hasError()) { delete ui; ui = 0; - fprintf(stderr, qPrintable(QString::fromLatin1("uic: Error in line %1, column %2 : %3\n") + fprintf(stderr, "%s\n", qPrintable(QString::fromLatin1("uic: Error in line %1, column %2 : %3") .arg(reader.lineNumber()).arg(reader.columnNumber()) .arg(reader.errorString()))); } |