diff options
author | Francois Andriot <francois.andriot@free.fr> | 2013-08-15 21:03:13 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-08-15 21:03:13 +0200 |
commit | 16f24a61f80fef5f29c81182a3bcf3906bdee7a7 (patch) | |
tree | 9b920b0b186e87e46d52d9ae9bd6fc74af29d28a /tools | |
parent | 571716ebf8f6f16b92e676c4e5986cae3e577686 (diff) | |
download | qt3-16f24a61f80fef5f29c81182a3bcf3906bdee7a7.tar.gz qt3-16f24a61f80fef5f29c81182a3bcf3906bdee7a7.zip |
Fix 'format not a string literal' error
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qvfb/qvfbview.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/qvfb/qvfbview.cpp b/tools/qvfb/qvfbview.cpp index 781cf78..32ac3d9 100644 --- a/tools/qvfb/qvfbview.cpp +++ b/tools/qvfb/qvfbview.cpp @@ -282,26 +282,26 @@ static QString qws_dataDir() QString dataDir = "/tmp/qtembedded-" + username; if ( mkdir( dataDir.latin1(), 0700 ) ) { if ( errno != EEXIST ) { - qFatal( QString("Cannot create Qt/Embedded data directory: %1") - .arg( dataDir ) ); + qFatal( "Cannot create Qt/Embedded data directory: %s", + dataDir.latin1() ); } } struct stat buf; if ( lstat( dataDir.latin1(), &buf ) ) - qFatal( QString( "stat failed for Qt/Embedded data directory: %1" ) - .arg( dataDir ) ); + qFatal( "stat failed for Qt/Embedded data directory: %s", + dataDir.latin1() ); if ( !S_ISDIR( buf.st_mode ) ) - qFatal( QString( "%1 is not a directory" ).arg( dataDir ) ); + qFatal( "%s is not a directory", dataDir.latin1() ); if ( buf.st_uid != getuid() ) - qFatal( QString( "Qt/Embedded data directory is not owned by user %1" ) - .arg( getuid() ) ); + qFatal( "Qt/Embedded data directory is not owned by user %u", + getuid() ); if ( (buf.st_mode & 0677) != 0600 ) - qFatal( QString( "Qt/Embedded data directory has incorrect permissions: %1" ) - .arg( dataDir ) ); + qFatal( "Qt/Embedded data directory has incorrect permissions: %s", + dataDir.latin1() ); dataDir += "/"; |