diff options
author | Francois Andriot <[email protected]> | 2013-08-15 21:03:13 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-08-15 21:03:13 +0200 |
commit | 16f24a61f80fef5f29c81182a3bcf3906bdee7a7 (patch) | |
tree | 9b920b0b186e87e46d52d9ae9bd6fc74af29d28a /src/moc | |
parent | 571716ebf8f6f16b92e676c4e5986cae3e577686 (diff) | |
download | qt3-16f24a61f80fef5f29c81182a3bcf3906bdee7a7.tar.gz qt3-16f24a61f80fef5f29c81182a3bcf3906bdee7a7.zip |
Fix 'format not a string literal' error
Diffstat (limited to 'src/moc')
-rw-r--r-- | src/moc/moc.y | 4 | ||||
-rw-r--r-- | src/moc/moc_yacc.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/moc/moc.y b/src/moc/moc.y index a507126..90f72ab 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 cb307e6..bf152b3 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 ) { /* |