diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-09-29 20:07:07 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-09-29 20:07:07 (GMT) |
commit | 5bf55d1590d2e92180b51c82b397cac8dd4c6d64 (patch) | |
tree | a17c7406d52ff3dd518554e1455d4997b0338047 /Source/cmDynamicLoader.cxx | |
parent | 64a6ad497523b68efe127b27ad2a7fdbe73cbfbc (diff) | |
download | CMake-5bf55d1590d2e92180b51c82b397cac8dd4c6d64.zip CMake-5bf55d1590d2e92180b51c82b397cac8dd4c6d64.tar.gz CMake-5bf55d1590d2e92180b51c82b397cac8dd4c6d64.tar.bz2 |
ENH: shorten the symbols a bit and remove maps of std::string for map of cmStdString
Diffstat (limited to 'Source/cmDynamicLoader.cxx')
-rw-r--r-- | Source/cmDynamicLoader.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmDynamicLoader.cxx b/Source/cmDynamicLoader.cxx index 638a043..469401c 100644 --- a/Source/cmDynamicLoader.cxx +++ b/Source/cmDynamicLoader.cxx @@ -36,7 +36,7 @@ public: static cmDynamicLoaderCache* GetInstance(); private: - std::map<std::string, cmLibHandle> m_CacheMap; + std::map<cmStdString, cmLibHandle> m_CacheMap; static cmDynamicLoaderCache* Instance; }; @@ -58,7 +58,7 @@ void cmDynamicLoaderCache::CacheFile(const char* path, const cmLibHandle& p) bool cmDynamicLoaderCache::GetCacheFile(const char* path, cmLibHandle& p) { - std::map<std::string, cmLibHandle>::iterator it = m_CacheMap.find(path); + std::map<cmStdString, cmLibHandle>::iterator it = m_CacheMap.find(path); if ( it != m_CacheMap.end() ) { p = it->second; @@ -69,7 +69,7 @@ bool cmDynamicLoaderCache::GetCacheFile(const char* path, cmLibHandle& p) bool cmDynamicLoaderCache::FlushCache(const char* path) { - std::map<std::string, cmLibHandle>::iterator it = m_CacheMap.find(path); + std::map<cmStdString, cmLibHandle>::iterator it = m_CacheMap.find(path); bool ret = false; if ( it != m_CacheMap.end() ) { @@ -82,7 +82,7 @@ bool cmDynamicLoaderCache::FlushCache(const char* path) void cmDynamicLoaderCache::FlushCache() { - for ( std::map<std::string, cmLibHandle>::iterator it = m_CacheMap.begin(); + for ( std::map<cmStdString, cmLibHandle>::iterator it = m_CacheMap.begin(); it != m_CacheMap.end(); it++ ) { cmDynamicLoader::CloseLibrary(it->second); |