Skip to content
Snippets Groups Projects
Commit 2a952db3 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

COMP: MSVC needs proper type casts

parent 4c92c3db
No related branches found
No related tags found
No related merge requests found
...@@ -84,11 +84,11 @@ public: ...@@ -84,11 +84,11 @@ public:
{ {
if ((*it).first == NULL) if ((*it).first == NULL)
{ {
itk::DynamicLoader::CloseLibrary( (*it).second); itk::DynamicLoader::CloseLibrary( static_cast<itk::LibHandle>((*it).second));
(*it).second = NULL; (*it).second = NULL;
} }
} }
m_Container.remove(AppHandlePairType(NULL,NULL)); m_Container.remove(AppHandlePairType((Application*) NULL, (void*) NULL));
} }
/** close all handles at program exit */ /** close all handles at program exit */
...@@ -97,7 +97,7 @@ public: ...@@ -97,7 +97,7 @@ public:
AppHandleContainerType::iterator it; AppHandleContainerType::iterator it;
for (it = m_Container.begin() ; it != m_Container.end() ; ++it) for (it = m_Container.begin() ; it != m_Container.end() ; ++it)
{ {
itk::DynamicLoader::CloseLibrary( (*it).second); itk::DynamicLoader::CloseLibrary( static_cast<itk::LibHandle>((*it).second));
} }
m_Container.clear(); m_Container.clear();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment