diff options
Diffstat (limited to 'shared/serialize.cpp')
-rw-r--r-- | shared/serialize.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/shared/serialize.cpp b/shared/serialize.cpp index 634b830b..c2da1202 100644 --- a/shared/serialize.cpp +++ b/shared/serialize.cpp @@ -12,8 +12,7 @@ using namespace zen; void ReadInputStream::throwReadError() const //throw (FileError) { - throw zen::FileError(wxString(_("Error reading from synchronization database:")) + wxT(" \n") + - wxT("\"") + errorObjName_ + wxT("\"")); + throw zen::FileError(_("Error reading from synchronization database:") + " \n" + "\"" + errorObjName_.c_str() + "\""); } @@ -35,8 +34,7 @@ ReadInputStream::CharArray ReadInputStream::readArrayC() const //-------------------------------------------------------------------------------------------------------- void WriteOutputStream::throwWriteError() const //throw (FileError) { - throw zen::FileError(wxString(_("Error writing to synchronization database:")) + wxT(" \n") + - wxT("\"") + errorObjName_ + wxT("\"")); + throw zen::FileError(_("Error writing to synchronization database:") + " \n" + "\"" + errorObjName_.c_str() + "\""); } |