summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2013-08-15 21:03:45 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-08-15 21:03:45 +0200
commit13618b73e353f9016f7c890e6b51eda2229737d1 (patch)
tree0031cbf4597c3e51ee1f0e3796aa00f7f6d057a2 /tools
parent5f10ba05fcbc9358b0b7bd6ac1aa87e5afd46959 (diff)
downloadtqt3-13618b73e353f9016f7c890e6b51eda2229737d1.tar.gz
tqt3-13618b73e353f9016f7c890e6b51eda2229737d1.zip
Fix 'format not a string literal' error
Diffstat (limited to 'tools')
-rw-r--r--tools/qvfb/qvfbview.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/qvfb/qvfbview.cpp b/tools/qvfb/qvfbview.cpp
index a23bab69b..15e5ca53e 100644
--- a/tools/qvfb/qvfbview.cpp
+++ b/tools/qvfb/qvfbview.cpp
@@ -282,26 +282,26 @@ static TQString qws_dataDir()
TQString dataDir = "/tmp/qtembedded-" + username;
if ( mkdir( dataDir.latin1(), 0700 ) ) {
if ( errno != EEXIST ) {
- tqFatal( TQString("Cannot create TQt/Embedded data directory: %1")
- .arg( dataDir ) );
+ tqFatal( "Cannot create TQt/Embedded data directory: %s",
+ dataDir.latin1() );
}
}
struct stat buf;
if ( lstat( dataDir.latin1(), &buf ) )
- tqFatal( TQString( "stat failed for TQt/Embedded data directory: %1" )
- .arg( dataDir ) );
+ tqFatal( "stat failed for TQt/Embedded data directory: %s",
+ dataDir.latin1() );
if ( !S_ISDIR( buf.st_mode ) )
- tqFatal( TQString( "%1 is not a directory" ).arg( dataDir ) );
+ tqFatal( "%s is not a directory", dataDir.latin1() );
if ( buf.st_uid != getuid() )
- tqFatal( TQString( "TQt/Embedded data directory is not owned by user %1" )
- .arg( getuid() ) );
+ tqFatal( "TQt/Embedded data directory is not owned by user %u",
+ getuid() );
if ( (buf.st_mode & 0677) != 0600 )
- tqFatal( TQString( "TQt/Embedded data directory has incorrect permissions: %1" )
- .arg( dataDir ) );
+ tqFatal( "TQt/Embedded data directory has incorrect permissions: %s",
+ dataDir.latin1() );
dataDir += "/";