summaryrefslogtreecommitdiff
path: root/Source/cmDynamicLoader.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-23 16:57:51 -0400
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-23 16:57:51 -0400
commit7fb39f7e3b67a17b2b83aa894ebdaf3996ca1ffa (patch)
treec232e1186a129907d709e23ac1cf2bffed0bea9c /Source/cmDynamicLoader.cxx
parent1b4171c5e44c168acb1612f61a4712cb2368802f (diff)
downloadcmake-7fb39f7e3b67a17b2b83aa894ebdaf3996ca1ffa.tar.gz
Fix cache for non void* types
Diffstat (limited to 'Source/cmDynamicLoader.cxx')
-rw-r--r--Source/cmDynamicLoader.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmDynamicLoader.cxx b/Source/cmDynamicLoader.cxx
index b7f70df1d6..6c6dfc9dc5 100644
--- a/Source/cmDynamicLoader.cxx
+++ b/Source/cmDynamicLoader.cxx
@@ -36,7 +36,7 @@ public:
static cmDynamicLoaderCache* GetInstance();
private:
- std::map<std::string, void*> m_CacheMap;
+ std::map<std::string, cmLibHandle> m_CacheMap;
static cmDynamicLoaderCache* Instance;
};
@@ -59,7 +59,7 @@ void cmDynamicLoaderCache::CacheFile(const char* path, const cmLibHandle& p)
bool cmDynamicLoaderCache::GetCacheFile(const char* path, cmLibHandle& p)
{
- std::map<std::string, void*>::iterator it = m_CacheMap.find(path);
+ std::map<std::string, cmLibHandle>::iterator it = m_CacheMap.find(path);
if ( it != m_CacheMap.end() )
{
p = it->second;
@@ -70,7 +70,7 @@ bool cmDynamicLoaderCache::GetCacheFile(const char* path, cmLibHandle& p)
bool cmDynamicLoaderCache::FlushCache(const char* path)
{
- std::map<std::string, void*>::iterator it = m_CacheMap.find(path);
+ std::map<std::string, cmLibHandle>::iterator it = m_CacheMap.find(path);
if ( it != m_CacheMap.end() )
{
cmDynamicLoader::CloseLibrary(it->second);
@@ -82,7 +82,7 @@ bool cmDynamicLoaderCache::FlushCache(const char* path)
void cmDynamicLoaderCache::FlushCache()
{
- for ( std::map<std::string, void*>::iterator it = m_CacheMap.begin();
+ for ( std::map<std::string, cmLibHandle>::iterator it = m_CacheMap.begin();
it != m_CacheMap.end(); it++ )
{
cmDynamicLoader::CloseLibrary(it->second);