projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adding missing header for non-precomp build
[wxWidgets.git]
/
src
/
xml
/
xml.cpp
diff --git
a/src/xml/xml.cpp
b/src/xml/xml.cpp
index 6872113502a45b9942a0a05a22c261e984ad3738..1555d29b726810f2d062b5204dcaef0b7e578cc9 100644
(file)
--- a/
src/xml/xml.cpp
+++ b/
src/xml/xml.cpp
@@
-784,7
+784,7
@@
bool OutputString(wxOutputStream& stream,
#if wxUSE_UNICODE
wxUnusedVar(convMem);
#if wxUSE_UNICODE
wxUnusedVar(convMem);
- const wxWX2MBbuf buf(str.mb_str(
convFile ? *convFile : wxConvUTF8
));
+ const wxWX2MBbuf buf(str.mb_str(
*(convFile ? convFile : &wxConvUTF8)
));
if ( !buf )
return false;
if ( !buf )
return false;
@@
-825,10
+825,11
@@
bool OutputStringEnt(wxOutputStream& stream,
{
wxChar c = str.GetChar(i);
if (c == wxS('<') || c == wxS('>') ||
{
wxChar c = str.GetChar(i);
if (c == wxS('<') || c == wxS('>') ||
- (c == wxS('&') && str.
Mid
(i+1, 4) != wxS("amp;")) ||
+ (c == wxS('&') && str.
substr
(i+1, 4) != wxS("amp;")) ||
((flags & XML_ESCAPE_QUOTES) && c == wxS('"')))
{
((flags & XML_ESCAPE_QUOTES) && c == wxS('"')))
{
- if ( !OutputString(stream, str.substr(last, i), convMem, convFile) )
+ if ( !OutputString(stream, str.substr(last, i - last),
+ convMem, convFile) )
return false;
const char *escaped;
return false;
const char *escaped;
@@
-858,7
+859,7
@@
bool OutputStringEnt(wxOutputStream& stream,
}
}
}
}
- return OutputString(stream, str.substr(last, i), convMem, convFile);
+ return OutputString(stream, str.substr(last, i
- last
), convMem, convFile);
}
bool OutputIndentation(wxOutputStream& stream,
}
bool OutputIndentation(wxOutputStream& stream,