summaryrefslogtreecommitdiff
path: root/shared/serialize.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared/serialize.h')
-rw-r--r--shared/serialize.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/shared/serialize.h b/shared/serialize.h
index 99dd83d5..7c4fcd5e 100644
--- a/shared/serialize.h
+++ b/shared/serialize.h
@@ -131,14 +131,14 @@ Zstring readString(wxInputStream& stream) //read string from file stream
const size_t strLength = readNumber<size_t>(stream);
if (strLength <= 1000)
{
- DefaultChar buffer[1000];
- stream.Read(buffer, sizeof(DefaultChar) * strLength);
+ Zchar buffer[1000];
+ stream.Read(buffer, sizeof(Zchar) * strLength);
return Zstring(buffer, strLength);
}
else
{
- boost::scoped_array<DefaultChar> buffer(new DefaultChar[strLength]);
- stream.Read(buffer.get(), sizeof(DefaultChar) * strLength);
+ boost::scoped_array<Zchar> buffer(new Zchar[strLength]);
+ stream.Read(buffer.get(), sizeof(Zchar) * strLength);
return Zstring(buffer.get(), strLength);
}
}
@@ -148,7 +148,7 @@ inline
void writeString(wxOutputStream& stream, const Zstring& str) //write string to filestream
{
writeNumber<size_t>(stream, str.length());
- stream.Write(str.c_str(), sizeof(DefaultChar) * str.length());
+ stream.Write(str.c_str(), sizeof(Zchar) * str.length());
}
bgstack15