summaryrefslogtreecommitdiffstats
path: root/Source/cmOrderLinkDirectories.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-11-30 22:50:40 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-11-30 22:50:40 (GMT)
commit639d2572be05b80f615102376658844d64b82ee5 (patch)
tree986955856bd0ab1b62704e3f8be3995931ecbc83 /Source/cmOrderLinkDirectories.cxx
parent5ff037e894fc4631dc3d7c6a59e5f2e4fb87c793 (diff)
downloadCMake-639d2572be05b80f615102376658844d64b82ee5.zip
CMake-639d2572be05b80f615102376658844d64b82ee5.tar.gz
CMake-639d2572be05b80f615102376658844d64b82ee5.tar.bz2
ENH: clean up comment and avoid some vector access calles
Diffstat (limited to 'Source/cmOrderLinkDirectories.cxx')
-rw-r--r--Source/cmOrderLinkDirectories.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/cmOrderLinkDirectories.cxx b/Source/cmOrderLinkDirectories.cxx
index f3d91a2..5636657 100644
--- a/Source/cmOrderLinkDirectories.cxx
+++ b/Source/cmOrderLinkDirectories.cxx
@@ -463,18 +463,16 @@ bool cmOrderLinkDirectories::DetermineLibraryPathOrder()
#ifdef CM_ORDER_LINK_DIRECTORIES_DEBUG
fprintf(stderr, "Raw link item [%s]\n", this->RawLinkItems[i].c_str());
#endif
- // check to see if the file is a full path or just contains
- // a / in it and is a path to something
- cmStdString& item = this->RawLinkItems[i];
// if it is a full path to an item then separate it from the path
// this only works with files and paths
+ cmStdString& item = this->RawLinkItems[i];
if(cmSystemTools::FileIsFullPath(item.c_str()))
{
- if(cmSystemTools::FileIsDirectory(this->RawLinkItems[i].c_str()))
+ if(cmSystemTools::FileIsDirectory(item.c_str()))
{
- if(cmSystemTools::IsPathToFramework(this->RawLinkItems[i].c_str()))
+ if(cmSystemTools::IsPathToFramework(item.c_str()))
{
- this->SplitFramework.find(this->RawLinkItems[i]);
+ this->SplitFramework.find(item.c_str());
cmStdString path = this->SplitFramework.match(1);
// Add the -F path if we have not yet done so
if(this->EmittedFrameworkPaths.insert(path).second)