diff --git a/UpdPublish/main.cpp b/UpdPublish/main.cpp index 5dae8fa..15d400c 100644 --- a/UpdPublish/main.cpp +++ b/UpdPublish/main.cpp @@ -227,7 +227,7 @@ int _tmain(int argc, _TCHAR *argv[]) wxMemoryBuffer hashOrig; wxString content(elLocaleNote->GetNodeContent()); size_t len = wxHexDecodedSize(content.length()); - size_t res = wxHexDecode(hashOrig.GetWriteBuf(len), len, content, wxHexDecodeMode_SkipWS); + size_t res = wxHexDecode(hashOrig.GetWriteBuf(len), len, content, wxHexDecodeMode::SkipWS); if (res != wxCONV_FAILED) { hashOrig.SetDataLen(res); if (hash.GetDataLen() == hashOrig.GetDataLen() && diff --git a/Updater/src/chkthread.cpp b/Updater/src/chkthread.cpp index aadb071..75bf847 100644 --- a/Updater/src/chkthread.cpp +++ b/Updater/src/chkthread.cpp @@ -334,7 +334,7 @@ bool wxUpdCheckThread::ParseCatalogue(const wxXmlDocument &doc) // Read the hash. wxString content(elLocaleNote->GetNodeContent()); size_t len = wxHexDecodedSize(content.length()); - size_t res = wxHexDecode(hash.GetWriteBuf(len), len, content, wxHexDecodeMode_SkipWS); + size_t res = wxHexDecode(hash.GetWriteBuf(len), len, content, wxHexDecodeMode::SkipWS); if (res != wxCONV_FAILED) hash.SetDataLen(res); else @@ -409,7 +409,7 @@ bool wxUpdCheckThread::ReadUpdatePackageMeta() if (m_config.Read(wxT("PackageHash"), &str)) { // Convert to binary. size_t len = wxHexDecodedSize(str.length()); - size_t res = wxHexDecode(m_hash.GetWriteBuf(len), len, str, wxHexDecodeMode_SkipWS); + size_t res = wxHexDecode(m_hash.GetWriteBuf(len), len, str, wxHexDecodeMode::SkipWS); if (res != wxCONV_FAILED) { m_hash.SetDataLen(res); return true;