summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGenInitializer.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-08-26 13:31:55 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-08-27 15:31:45 (GMT)
commitc797148e8573614a66465cd4ca6ed4bf5e8a5584 (patch)
treec19c92dc40fa6010c18822468e853773d3392410 /Source/cmQtAutoGenInitializer.h
parent8586077baae74c90056704c022aad8357788fa38 (diff)
downloadCMake-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/cmQtAutoGenInitializer.h')
-rw-r--r--Source/cmQtAutoGenInitializer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmQtAutoGenInitializer.h b/Source/cmQtAutoGenInitializer.h
index 7d72cad..65666a6 100644
--- a/Source/cmQtAutoGenInitializer.h
+++ b/Source/cmQtAutoGenInitializer.h
@@ -63,7 +63,7 @@ public:
bool Enabled = false;
// Generator type/name
GenT Gen;
- std::string const& GenNameUpper;
+ cm::string_view GenNameUpper;
// Executable
std::string ExecutableTargetName;
cmGeneratorTarget* ExecutableTarget = nullptr;
@@ -145,7 +145,7 @@ private:
bool AddGeneratedSource(std::string const& filename, GenVarsT const& genVars,
bool prepend = false);
bool AddToSourceGroup(std::string const& fileName,
- std::string const& genNameUpper);
+ cm::string_view genNameUpper);
void AddCleanFile(std::string const& fileName);
bool GetQtExecutable(GenVarsT& genVars, const std::string& executable,