mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-30 18:29:37 -06:00
cmGlobalGeneratorFactory.h: Simplify returning default values
This commit is contained in:
@@ -47,7 +47,7 @@ public:
|
||||
virtual std::string GetDefaultPlatformName() const = 0;
|
||||
};
|
||||
|
||||
template <class T>
|
||||
template <typename T>
|
||||
class cmGlobalGeneratorSimpleFactory : public cmGlobalGeneratorFactory
|
||||
{
|
||||
public:
|
||||
@@ -70,13 +70,11 @@ public:
|
||||
/** Get the names of the current registered generators */
|
||||
std::vector<std::string> GetGeneratorNames() const override
|
||||
{
|
||||
std::vector<std::string> names;
|
||||
names.push_back(T::GetActualName());
|
||||
return names;
|
||||
return { T::GetActualName() };
|
||||
}
|
||||
std::vector<std::string> GetGeneratorNamesWithPlatform() const override
|
||||
{
|
||||
return std::vector<std::string>();
|
||||
return {};
|
||||
}
|
||||
|
||||
/** Determine whether or not this generator supports toolsets */
|
||||
@@ -89,8 +87,8 @@ public:
|
||||
std::vector<std::string> GetKnownPlatforms() const override
|
||||
{
|
||||
// default is no platform supported
|
||||
return std::vector<std::string>();
|
||||
return {};
|
||||
}
|
||||
|
||||
std::string GetDefaultPlatformName() const override { return std::string(); }
|
||||
std::string GetDefaultPlatformName() const override { return {}; }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user