summaryrefslogtreecommitdiffstats
path: root/src/moc
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 /src/moc
parent5f10ba05fcbc9358b0b7bd6ac1aa87e5afd46959 (diff)
downloadtqt3-13618b73e353f9016f7c890e6b51eda2229737d1.tar.gz
tqt3-13618b73e353f9016f7c890e6b51eda2229737d1.zip
Fix 'format not a string literal' error
Diffstat (limited to 'src/moc')
-rw-r--r--src/moc/moc.y4
-rw-r--r--src/moc/moc_yacc.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/moc/moc.y b/src/moc/moc.y
index 4540262be..b10e444e8 100644
--- a/src/moc/moc.y
+++ b/src/moc/moc.y
@@ -2873,8 +2873,8 @@ void generateClass() // generate C++ source code for a class
fn = &g->fileName[i];
fprintf( out, hdr1, (const char*)qualifiedClassName(),(const char*)fn);
fprintf( out, hdr2, (const char*)dstr );
- fprintf( out, hdr3 );
- fprintf( out, hdr4 );
+ fprintf( out, "%s", hdr3 );
+ fprintf( out, "%s", hdr4 );
if ( !g->noInclude ) {
/*
diff --git a/src/moc/moc_yacc.cpp b/src/moc/moc_yacc.cpp
index 13c38b654..3d6b8cfbe 100644
--- a/src/moc/moc_yacc.cpp
+++ b/src/moc/moc_yacc.cpp
@@ -5699,8 +5699,8 @@ void generateClass() // generate C++ source code for a class
fn = &g->fileName[i];
fprintf( out, hdr1, (const char*)qualifiedClassName(),(const char*)fn);
fprintf( out, hdr2, (const char*)dstr );
- fprintf( out, hdr3 );
- fprintf( out, hdr4 );
+ fprintf( out, "%s", hdr3 );
+ fprintf( out, "%s", hdr4 );
if ( !g->noInclude ) {
/*