From e6c51e923f254464a12a2fdfe76972e30fa403d9 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Mon, 10 Feb 2020 14:59:12 +0100 Subject: [PATCH] Make enum wxHexDecodeMode scoped Signed-off-by: Simon Rozman --- UpdPublish/main.cpp | 2 +- Updater/src/chkthread.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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;