summaryrefslogtreecommitdiffstats
path: root/tools/qvfb/qvfbview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qvfb/qvfbview.cpp')
-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 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 += "/";