AUTOGEN: Generators: Group static function definitions

This commit is contained in:
Sebastian Holtermann
2016-12-27 18:37:30 +01:00
parent c736c41ad1
commit f962275987
+9 -9
View File
@@ -80,6 +80,15 @@ static bool FileNameIsUnique(const std::string& filePath,
return true;
}
static std::string ReadAll(const std::string& filename)
{
cmsys::ifstream file(filename.c_str());
std::ostringstream stream;
stream << file.rdbuf();
file.close();
return stream.str();
}
cmQtAutoGenerators::cmQtAutoGenerators()
: Verbose(cmsys::SystemTools::HasEnv("VERBOSE"))
, ColorOutput(true)
@@ -472,15 +481,6 @@ void cmQtAutoGenerators::Init()
}
}
static std::string ReadAll(const std::string& filename)
{
cmsys::ifstream file(filename.c_str());
std::ostringstream stream;
stream << file.rdbuf();
file.close();
return stream.str();
}
bool cmQtAutoGenerators::RunAutogen(cmMakefile* makefile)
{
// If settings changed everything needs to be re-generated.