summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmFindPackageCommand.cxx')
-rw-r--r--Source/cmFindPackageCommand.cxx10
1 files changed, 1 insertions, 9 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx
index 5cc1724..426d3df 100644
--- a/Source/cmFindPackageCommand.cxx
+++ b/Source/cmFindPackageCommand.cxx
@@ -1067,15 +1067,7 @@ void cmFindPackageCommand::ComputeFinalPrefixes()
this->RerootPaths(prefixes);
// Add a trailing slash to all prefixes to aid the search process.
- for(std::vector<std::string>::iterator i = prefixes.begin();
- i != prefixes.end(); ++i)
- {
- std::string& prefix = *i;
- if(prefix[prefix.size()-1] != '/')
- {
- prefix += "/";
- }
- }
+ this->AddTrailingSlashes(prefixes);
}
//----------------------------------------------------------------------------