mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-03-06 13:41:35 +01:00
fix document problem
This commit is contained in:
parent
4b8cc94a25
commit
7b32bbaae7
@ -131,8 +131,8 @@ StringStream source(s);
|
||||
GenericStringBuffer<UTF16<> > target;
|
||||
|
||||
bool hasError = false;
|
||||
while (source.Peak() != '\0')
|
||||
if (!Transcoder::Transcode<UTF8<>, UTF16<> >(source, target)) {
|
||||
while (source.Peek() != '\0')
|
||||
if (!Transcoder<UTF8<>, UTF16<>>::Transcode(source, target)) {
|
||||
hasError = true;
|
||||
break;
|
||||
}
|
||||
|
@ -137,8 +137,8 @@ StringStream source(s);
|
||||
GenericStringBuffer<UTF16<> > target;
|
||||
|
||||
bool hasError = false;
|
||||
while (source.Peak() != '\0')
|
||||
if (!Transcoder::Transcode<UTF8<>, UTF16<> >(source, target)) {
|
||||
while (source.Peek() != '\0')
|
||||
if (!Transcoder<UTF8<>, UTF16<>>::Transcode(source, target)) {
|
||||
hasError = true;
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user