diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-08-24 14:27:18 -0400 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-08-24 14:27:18 -0400 |
commit | 938ed7710ab15ad13f51bd17243cfe20cf8285eb (patch) | |
tree | 4234154b94405fba1de7ed626af9d9fdc4b7a33d /Source/cmInstallCommandArguments.cxx | |
parent | 9220e974017e34b53ba0650ec45c1a16566b6b88 (diff) | |
download | cmake-938ed7710ab15ad13f51bd17243cfe20cf8285eb.tar.gz |
STYLE: fix MSVC warnings by making the cmCommandArgumentsHelper a member of
cmInstallCommandArguments instead of deriving from it
Alex
Diffstat (limited to 'Source/cmInstallCommandArguments.cxx')
-rw-r--r-- | Source/cmInstallCommandArguments.cxx | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/Source/cmInstallCommandArguments.cxx b/Source/cmInstallCommandArguments.cxx index 91a00ce7b0..9cba5bf896 100644 --- a/Source/cmInstallCommandArguments.cxx +++ b/Source/cmInstallCommandArguments.cxx @@ -29,14 +29,14 @@ const char* cmInstallCommandArguments::PermissionsTable[] = const std::string cmInstallCommandArguments::EmptyString; cmInstallCommandArguments::cmInstallCommandArguments() -:cmCommandArgumentsHelper() +:Parser() ,ArgumentGroup() -,Destination (this, "DESTINATION" , &ArgumentGroup) -,Component (this, "COMPONENT" , &ArgumentGroup) -,Rename (this, "RENAME" , &ArgumentGroup) -,Permissions (this, "PERMISSIONS" , &ArgumentGroup) -,Configurations(this, "CONFIGURATIONS", &ArgumentGroup) -,Optional (this, "OPTIONAL" , &ArgumentGroup) +,Destination (&Parser, "DESTINATION" , &ArgumentGroup) +,Component (&Parser, "COMPONENT" , &ArgumentGroup) +,Rename (&Parser, "RENAME" , &ArgumentGroup) +,Permissions (&Parser, "PERMISSIONS" , &ArgumentGroup) +,Configurations(&Parser, "CONFIGURATIONS", &ArgumentGroup) +,Optional (&Parser, "OPTIONAL" , &ArgumentGroup) ,GenericArguments(0) { this->Component.SetDefaultString("Unspecified"); @@ -133,6 +133,13 @@ bool cmInstallCommandArguments::Finalize() return true; } +void cmInstallCommandArguments::Parse(const std::vector<std::string>* args, + std::vector<std::string>* unconsumedArgs) +{ + this->Parser.Parse(args, unconsumedArgs); +} + + bool cmInstallCommandArguments::CheckPermissions() { this->PermissionsString = ""; |