From 21886ff66a8a84c20a3c7f24601b5a353d8c7d06 Mon Sep 17 00:00:00 2001 From: Sebastian Holtermann Date: Tue, 14 Feb 2017 19:17:48 +0100 Subject: Autogen: Use FooEnabled() utility methods --- Source/cmQtAutoGenerators.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx index 3807c3d..8d8b47a 100644 --- a/Source/cmQtAutoGenerators.cxx +++ b/Source/cmQtAutoGenerators.cxx @@ -431,7 +431,7 @@ bool cmQtAutoGenerators::ReadAutogenInfoFile( std::string cmQtAutoGenerators::SettingsStringGenMoc() { std::string res; - if (!this->MocExecutable.empty()) { + if (this->MocEnabled()) { res += this->MocCompileDefinitionsStr; res += " ~~~ "; res += this->MocIncludesStr; @@ -447,7 +447,7 @@ std::string cmQtAutoGenerators::SettingsStringGenMoc() std::string cmQtAutoGenerators::SettingsStringGenUic() { std::string res; - if (!this->UicExecutable.empty()) { + if (this->UicEnabled()) { res += cmJoin(this->UicTargetOptions, "@osep@"); res += " ~~~ "; res += JoinOptions(this->UicOptions); @@ -459,7 +459,7 @@ std::string cmQtAutoGenerators::SettingsStringGenUic() std::string cmQtAutoGenerators::SettingsStringGenRcc() { std::string res; - if (!this->RccExecutable.empty()) { + if (this->RccEnabled()) { res += JoinOptions(this->RccOptions); res += " ~~~ "; } @@ -709,7 +709,7 @@ bool cmQtAutoGenerators::MocRequired(const std::string& text, bool cmQtAutoGenerators::MocSkipTest(const std::string& absFilename) { // Test if moc scanning is enabled - if (!this->MocExecutable.empty()) { + if (this->MocEnabled()) { // Test if the file name is on the skip list if (!ListContains(this->SkipMoc, absFilename)) { return false; @@ -724,7 +724,7 @@ bool cmQtAutoGenerators::MocSkipTest(const std::string& absFilename) bool cmQtAutoGenerators::UicSkipTest(const std::string& absFilename) { // Test if uic scanning is enabled - if (!this->UicExecutable.empty()) { + if (this->UicEnabled()) { // Test if the file name is on the skip list if (!ListContains(this->SkipUic, absFilename)) { return false; @@ -1072,7 +1072,7 @@ bool cmQtAutoGenerators::MocGenerateAll( const std::map& includedMocs, const std::map& notIncludedMocs) { - if (this->MocExecutable.empty()) { + if (!this->MocEnabled()) { return true; } @@ -1261,7 +1261,7 @@ bool cmQtAutoGenerators::MocGenerateFile(const std::string& sourceFile, bool cmQtAutoGenerators::UicGenerateAll( const std::map >& includedUis) { - if (this->UicExecutable.empty()) { + if (!this->UicEnabled()) { return true; } @@ -1390,7 +1390,7 @@ bool cmQtAutoGenerators::UicGenerateFile(const std::string& realName, bool cmQtAutoGenerators::QrcGenerateAll() { - if (this->RccExecutable.empty()) { + if (!this->RccEnabled()) { return true; } -- cgit v0.12