diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-02-26 18:33:26 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-02-26 18:33:26 (GMT) |
commit | 63191b169e28630db586ad7c975823cb985d6a10 (patch) | |
tree | 191cf30a15ae08370e346e7be35300b0156e2b03 /Source/cmQtAutoGen.cxx | |
parent | 78ff8d573777c099aea5bd2eb92d9866c0d85952 (diff) | |
download | CMake-63191b169e28630db586ad7c975823cb985d6a10.zip CMake-63191b169e28630db586ad7c975823cb985d6a10.tar.gz CMake-63191b169e28630db586ad7c975823cb985d6a10.tar.bz2 |
Autogen: Use more readable variable names for static const AUTO* strings
Diffstat (limited to 'Source/cmQtAutoGen.cxx')
-rw-r--r-- | Source/cmQtAutoGen.cxx | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/Source/cmQtAutoGen.cxx b/Source/cmQtAutoGen.cxx index 25ef4fc..022947f 100644 --- a/Source/cmQtAutoGen.cxx +++ b/Source/cmQtAutoGen.cxx @@ -73,44 +73,44 @@ void MergeOptions(std::vector<std::string>& baseOpts, unsigned int const cmQtAutoGen::ParallelMax = 64; std::string const cmQtAutoGen::ListSep = "<<<S>>>"; -std::string const cmQtAutoGen::GenNameGen = "AutoGen"; -std::string const cmQtAutoGen::GenNameMoc = "AutoMoc"; -std::string const cmQtAutoGen::GenNameUic = "AutoUic"; -std::string const cmQtAutoGen::GenNameRcc = "AutoRcc"; +std::string const cmQtAutoGen::GenAutoGen = "AutoGen"; +std::string const cmQtAutoGen::GenAutoMoc = "AutoMoc"; +std::string const cmQtAutoGen::GenAutoUic = "AutoUic"; +std::string const cmQtAutoGen::GenAutoRcc = "AutoRcc"; -std::string const cmQtAutoGen::GenNameGenUpper = "AUTOGEN"; -std::string const cmQtAutoGen::GenNameMocUpper = "AUTOMOC"; -std::string const cmQtAutoGen::GenNameUicUpper = "AUTOUIC"; -std::string const cmQtAutoGen::GenNameRccUpper = "AUTORCC"; +std::string const cmQtAutoGen::GenAUTOGEN = "AUTOGEN"; +std::string const cmQtAutoGen::GenAUTOMOC = "AUTOMOC"; +std::string const cmQtAutoGen::GenAUTOUIC = "AUTOUIC"; +std::string const cmQtAutoGen::GenAUTORCC = "AUTORCC"; std::string const& cmQtAutoGen::GeneratorName(GenT genType) { switch (genType) { case GenT::GEN: - return GenNameGen; + return GenAutoGen; case GenT::MOC: - return GenNameMoc; + return GenAutoMoc; case GenT::UIC: - return GenNameUic; + return GenAutoUic; case GenT::RCC: - return GenNameRcc; + return GenAutoRcc; } - return GenNameGen; + return GenAutoGen; } std::string const& cmQtAutoGen::GeneratorNameUpper(GenT genType) { switch (genType) { case GenT::GEN: - return GenNameGenUpper; + return GenAUTOGEN; case GenT::MOC: - return GenNameMocUpper; + return GenAUTOMOC; case GenT::UIC: - return GenNameUicUpper; + return GenAUTOUIC; case GenT::RCC: - return GenNameRccUpper; + return GenAUTORCC; } - return GenNameGenUpper; + return GenAUTOGEN; } std::string cmQtAutoGen::Tools(bool moc, bool uic, bool rcc) @@ -118,13 +118,13 @@ std::string cmQtAutoGen::Tools(bool moc, bool uic, bool rcc) std::string res; std::vector<std::string> lst; if (moc) { - lst.emplace_back("AUTOMOC"); + lst.emplace_back(GenAUTOMOC); } if (uic) { - lst.emplace_back("AUTOUIC"); + lst.emplace_back(GenAUTOUIC); } if (rcc) { - lst.emplace_back("AUTORCC"); + lst.emplace_back(GenAUTORCC); } switch (lst.size()) { case 1: |