Skip to content
Snippets Groups Projects
Commit 2ce2a93e authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

WRG: fix wrg (format not a string literal and no format arguments)

parent 88c96c7d
No related branches found
No related tags found
No related merge requests found
......@@ -136,16 +136,14 @@ ApplicationHtmlDocGenerator::GenerateDoc(const Application::Pointer app, const s
ApplicationHtmlDocGenerator::GenerateDoc( app, doc );
FILE *file = fopen(filename.c_str(), "w");
if (file == NULL)
std::ofstream ofs(filename.c_str());
if (!ofs.is_open())
{
fprintf(stderr, "Error, can't open file");
itkGenericExceptionMacro( << "Error, can't open file "<<filename<<".");
}
fprintf(file,"%s",doc.c_str());
fclose(file);
ofs << doc;
ofs.close();
}
void ApplicationHtmlDocGenerator::GetDocParameters( const Application::Pointer app, std::string & val)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment