Fixed: Compilation with GCC

This commit is contained in:
kervala 2012-09-23 20:26:26 +02:00
parent 853e110ac5
commit 898c87ebe1

View file

@ -245,7 +245,7 @@ public:
} }
private: private:
CLookup _Indices [NC]; CLookup _Indices [NC];
CItems _Items; CItems _Items;
@ -280,7 +280,7 @@ public:
{ {
throw Exception("Could not open html: %s", filename.c_str()); throw Exception("Could not open html: %s", filename.c_str());
} }
fprintf( _File, ("<html><head>\n<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n<title>" + title + "</title>\n</head><body>\n").c_str() ); fprintf( _File, "<html><head>\n<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n<title>%s</title>\n</head><body>\n", title.c_str() );
} }
/// ///
@ -289,7 +289,7 @@ public:
if ( ! _Enabled ) if ( ! _Enabled )
return; return;
fprintf( _File, htmlCode.c_str() ); fprintf( _File, "%s", htmlCode.c_str() );
} }
/// ///