summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageCommand.h
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2010-08-29 15:51:44 (GMT)
committerAlex Neundorf <neundorf@kde.org>2010-08-29 15:51:44 (GMT)
commit0367245f0c1a665d44b7169cc0f24eda5dbb4de3 (patch)
tree45f3c2e2a8bece0b1ece8fadd5f8ed33cf56bdac /Source/cmFindPackageCommand.h
parent130b0e21958535a4f4f408cf7392fa9b3ee336fe (diff)
downloadCMake-0367245f0c1a665d44b7169cc0f24eda5dbb4de3.zip
CMake-0367245f0c1a665d44b7169cc0f24eda5dbb4de3.tar.gz
CMake-0367245f0c1a665d44b7169cc0f24eda5dbb4de3.tar.bz2
Replace the two vector<string,string> with one vector<struct{string,string}>
Before this patch there were two separate vectors, and the code made sure they always had the same size. With this patch the code doesn't have to ensure this anymore, there is only one vector now. Alex
Diffstat (limited to 'Source/cmFindPackageCommand.h')
-rw-r--r--Source/cmFindPackageCommand.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmFindPackageCommand.h b/Source/cmFindPackageCommand.h
index 2495d6c..57aeab9 100644
--- a/Source/cmFindPackageCommand.h
+++ b/Source/cmFindPackageCommand.h
@@ -138,8 +138,9 @@ private:
std::vector<std::string> Names;
std::vector<std::string> Configs;
std::set<std::string> IgnoredPaths;
- std::vector<std::string> ConsideredConfigFiles;
- std::vector<std::string> ConsideredVersions;
+
+ struct ConfigFileInfo { std::string filename; std::string version; };
+ std::vector<ConfigFileInfo> ConsideredConfigs;
};
#endif