]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed MSVC warnings from Win32 Unicode Release build.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Sat, 8 Nov 2003 19:40:29 +0000 (19:40 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Sat, 8 Nov 2003 19:40:29 +0000 (19:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24487 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/xml/xml.cpp

index 755f7e56567f7b7ade2905b61eefcda783eadce0..fc447594a556607a3c16daacf53a216fa90fcb77 100644 (file)
@@ -156,8 +156,8 @@ wxString wxXmlNode::GetPropVal(const wxString& propName, const wxString& default
     wxString tmp;
     if (GetPropVal(propName, &tmp))
         return tmp;
-    else
-        return defaultVal;
+
+    return defaultVal;
 }
 
 void wxXmlNode::AddChild(wxXmlNode *child)
@@ -584,7 +584,12 @@ bool wxXmlDocument::Load(wxInputStream& stream, const wxString& encoding)
 
 // write string to output:
 inline static void OutputString(wxOutputStream& stream, const wxString& str,
-                                wxMBConv *convMem, wxMBConv *convFile)
+#if wxUSE_UNICODE
+    wxMBConv * WXUNUSED(convMem),
+#else
+    wxMBConv *convMem,
+#endif
+    wxMBConv *convFile)
 {
     if (str.IsEmpty()) return;
 #if wxUSE_UNICODE