diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-08-26 13:31:55 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-08-27 15:31:45 (GMT) |
commit | c797148e8573614a66465cd4ca6ed4bf5e8a5584 (patch) | |
tree | c19c92dc40fa6010c18822468e853773d3392410 /Source/cmQtAutoGenerator.cxx | |
parent | 8586077baae74c90056704c022aad8357788fa38 (diff) | |
download | CMake-c797148e8573614a66465cd4ca6ed4bf5e8a5584.zip CMake-c797148e8573614a66465cd4ca6ed4bf5e8a5584.tar.gz CMake-c797148e8573614a66465cd4ca6ed4bf5e8a5584.tar.bz2 |
Autogen: Use cm::string_view for AUTO{MOC,UIC,RCC} generator names
- Store `AUTO{MOC,UIC,RCC}` generator name as `cm::string_view`
- Use `std::initializer_list` instead of `std::array`
Diffstat (limited to 'Source/cmQtAutoGenerator.cxx')
-rw-r--r-- | Source/cmQtAutoGenerator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmQtAutoGenerator.cxx b/Source/cmQtAutoGenerator.cxx index 90361a9..2820ef4 100644 --- a/Source/cmQtAutoGenerator.cxx +++ b/Source/cmQtAutoGenerator.cxx @@ -86,7 +86,7 @@ void cmQtAutoGenerator::Logger::Warning(GenT genType, msg += " warning: "; } else { // Multi line message - msg += HeadLine(GeneratorName(genType) + " warning"); + msg += HeadLine(cmStrCat(GeneratorName(genType), " warning")); } // Message msg += message; @@ -110,7 +110,7 @@ void cmQtAutoGenerator::Logger::WarningFile(GenT genType, void cmQtAutoGenerator::Logger::Error(GenT genType, std::string const& message) const { - std::string msg = HeadLine(GeneratorName(genType) + " error"); + std::string msg = HeadLine(cmStrCat(GeneratorName(genType), " error")); // Message msg += message; if (msg.back() != '\n') { @@ -136,7 +136,7 @@ void cmQtAutoGenerator::Logger::ErrorCommand( { std::string msg; msg.push_back('\n'); - msg += HeadLine(GeneratorName(genType) + " subprocess error"); + msg += HeadLine(cmStrCat(GeneratorName(genType), " subprocess error")); msg += message; if (msg.back() != '\n') { msg.push_back('\n'); |