summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGenerators.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-11-23 10:05:50 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-11-23 10:09:54 (GMT)
commit5eb4d7590e0e721b56fc735ab6da35d55ad339d0 (patch)
treee7edc44c5913f7647c46fa1a9df0472b3000ece2 /Source/cmQtAutoGenerators.cxx
parent2a0c65485854bb6e6a33a7d5acd99c936adacec6 (diff)
downloadCMake-5eb4d7590e0e721b56fc735ab6da35d55ad339d0.zip
CMake-5eb4d7590e0e721b56fc735ab6da35d55ad339d0.tar.gz
CMake-5eb4d7590e0e721b56fc735ab6da35d55ad339d0.tar.bz2
Remove some unneeded c_str calls.
Diffstat (limited to 'Source/cmQtAutoGenerators.cxx')
-rw-r--r--Source/cmQtAutoGenerators.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx
index 929cbc0..3e8aaef 100644
--- a/Source/cmQtAutoGenerators.cxx
+++ b/Source/cmQtAutoGenerators.cxx
@@ -178,7 +178,7 @@ std::string cmQtAutoGenerators::ListQt5RccInputs(cmSourceFile* sf,
command.push_back("--list");
std::string absFile = cmsys::SystemTools::GetRealPath(
- sf->GetFullPath().c_str());
+ sf->GetFullPath());
command.push_back(absFile);
@@ -394,7 +394,7 @@ bool cmQtAutoGenerators::InitializeAutogenTarget(cmTarget* target)
{
cmSourceFile* sf = *fileIt;
std::string absFile = cmsys::SystemTools::GetRealPath(
- sf->GetFullPath().c_str());
+ sf->GetFullPath());
std::string ext = sf->GetExtension();
@@ -2319,8 +2319,8 @@ bool cmQtAutoGenerators::InputFilesNewerThanQrc(const std::string& qrcFile,
it != files.end(); ++it)
{
int inputNewerThanQrc = 0;
- bool success = cmsys::SystemTools::FileTimeCompare(it->c_str(),
- rccOutput.c_str(),
+ bool success = cmsys::SystemTools::FileTimeCompare(*it,
+ rccOutput,
&inputNewerThanQrc);
if (!success || inputNewerThanQrc >= 0)
{
@@ -2353,7 +2353,7 @@ bool cmQtAutoGenerators::GenerateQrc()
int sourceNewerThanQrc = 0;
bool generateQrc = !cmsys::SystemTools::FileTimeCompare(*si,
- rcc_output_file.c_str(),
+ rcc_output_file,
&sourceNewerThanQrc);
generateQrc = generateQrc || (sourceNewerThanQrc >= 0);
generateQrc = generateQrc || this->InputFilesNewerThanQrc(*si,