wxString tmp;
if (GetPropVal(propName, &tmp))
return tmp;
- else
- return defaultVal;
+
+ return defaultVal;
}
void wxXmlNode::AddChild(wxXmlNode *child)
return str;
}
else
- return wxString(s, len);
+ return wxString(s, len != wxSTRING_MAXLEN ? len : strlen(s));
#endif
}
// 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