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/cmQtAutoGen.h | |
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/cmQtAutoGen.h')
-rw-r--r-- | Source/cmQtAutoGen.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmQtAutoGen.h b/Source/cmQtAutoGen.h index 03468ec..939ceb3 100644 --- a/Source/cmQtAutoGen.h +++ b/Source/cmQtAutoGen.h @@ -68,9 +68,9 @@ public: public: /// @brief Returns the generator name - static std::string const& GeneratorName(GenT genType); + static cm::string_view GeneratorName(GenT genType); /// @brief Returns the generator name in upper case - static std::string const& GeneratorNameUpper(GenT genType); + static cm::string_view GeneratorNameUpper(GenT genType); /// @brief Returns a string with the requested tool names static std::string Tools(bool moc, bool uic, bool rcc); |