]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fixes for VC++ in release mode
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Aug 2001 15:26:27 +0000 (15:26 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Aug 2001 15:26:27 +0000 (15:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filename.cpp
src/generic/dirctrlg.cpp
src/generic/treectlg.cpp
src/html/htmltag.cpp

index d8446148ac9a71499c931e20732719f75559d278..5e6c33816fd018ce2f211b97d9f415283ad45205 100644 (file)
@@ -590,8 +590,8 @@ wxString wxFileName::GetShortPath() const
     }
     if (ok)
         return pathOut;
-    else
-        return path;
+
+    return path;
 #else
     return GetFullPath();
 #endif
@@ -605,7 +605,8 @@ wxString wxFileName::GetLongPath() const
     wxString pathOut;
     bool success = FALSE;
 
-#if wxUSE_DYNLIB_CLASS
+    // VZ: this code was disabled, why?
+#if 0 // wxUSE_DYNLIB_CLASS
     typedef DWORD (*GET_LONG_PATH_NAME)(const wxChar *, wxChar *, DWORD);
 
     static bool s_triedToLoad = FALSE;
@@ -613,7 +614,6 @@ wxString wxFileName::GetLongPath() const
     if ( !s_triedToLoad )
     {
         s_triedToLoad = TRUE;
-#if 0
         wxDllType dllKernel = wxDllLoader::LoadLibrary(_T("kernel32"));
         if ( dllKernel )
         {
@@ -651,12 +651,10 @@ wxString wxFileName::GetLongPath() const
                 }
             }
         }
-#endif         
     }
     if (success)
         return pathOut;
-#endif
-    // wxUSE_DYNLIB_CLASS
+#endif // wxUSE_DYNLIB_CLASS
 
     if (!success)
     {
@@ -705,6 +703,7 @@ wxString wxFileName::GetLongPath() const
             }
         }
     }
+
     return pathOut;
 #else
     return GetFullPath();
index d00e4d958b61fa62117a7ade6ad82d7bb707c2a5..ed3ad90ffef1a4a404055dcaa4a3058931aea879 100644 (file)
@@ -1074,8 +1074,8 @@ bool wxGenericDirCtrl::ExtractWildcard(const wxString& filterStr, int n, wxStrin
         description = descriptions[n];
         return TRUE;
     }
-    else
-        return FALSE;
+
+    return FALSE;
 }
 
 // Parses the global filter, returning the number of filters.
index ed745c827f1f28c55daf7d37f6d383ace3dc6997..6c61c9f6e4d21ec2ab521069a6ca5aaf10aa3ec2 100644 (file)
@@ -2314,8 +2314,8 @@ wxTreeItemId wxGenericTreeCtrl::HitTest(const wxPoint& point, int& flags)
 
     if (m_anchor)
         return m_anchor->HitTest( wxPoint(x, y), this, flags);
-    else
-        return wxTreeItemId();
+
+    return wxTreeItemId();
 }
 
 // get the bounding rectangle of the item (or of its label only)
index 1632ed698741fa115bffacb5c58c608a2a48d4ed..e725a033abcfcc975c0d444338749d000bc0fca8 100644 (file)
@@ -376,8 +376,9 @@ bool wxHtmlTag::GetParamAsColour(const wxString& par, wxColour *clr) const
         HTML_COLOUR("teal",    0x00,0x80,0x80)
         HTML_COLOUR("aqua",    0x00,0xFF,0xFF)
         #undef HTML_COLOUR
-        return FALSE;
     }
+
+    return FALSE;
 }
 
 bool wxHtmlTag::GetParamAsInt(const wxString& par, int *clr) const