]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dynlib.cpp
Added missing include for non-precompiled headers.
[wxWidgets.git] / src / common / dynlib.cpp
index 796231c31a802126e309007dba09f356c737742d..2c82172f8fffa9b8d0ed46a34868eca6bc4daa71 100644 (file)
@@ -166,7 +166,7 @@ void wxLibrary::PrepareClasses(wxClassInfo *first)
     {
         if (info->m_className)
             classTable.Put(info->m_className, (wxObject *)info);
-        info = info->GetNext();
+        info = (wxClassInfo *)info->GetNext();
     }
 
     // Set base pointers for each wxClassInfo
@@ -363,7 +363,8 @@ wxLibrary *wxLibraries::LoadLibrary(const wxString& name)
     if (node != NULL)
         return ((wxLibrary *)node->Data());
 #else // !OS/2
-    if ( (node = m_loaded.Find(name.GetData())) )
+       node = m_loaded.Find(name.GetData());
+    if ( node )
         return ((wxLibrary *)node->Data());
 #endif
     // If DLL shares data, this is necessary.