summaryrefslogtreecommitdiff
path: root/shared/serialize.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:08:42 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:08:42 +0200
commitc32707148292d104c66276b43796d6057c8c7a5d (patch)
treebb83513f4aff24153e21a4ec92e34e4c27651b1f /shared/serialize.h
parent3.9 (diff)
downloadFreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.tar.gz
FreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.tar.bz2
FreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.zip
3.10
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