Make enum wxHexDecodeMode scoped
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
62a7d4e715
commit
e6c51e923f
@ -227,7 +227,7 @@ int _tmain(int argc, _TCHAR *argv[])
|
|||||||
wxMemoryBuffer hashOrig;
|
wxMemoryBuffer hashOrig;
|
||||||
wxString content(elLocaleNote->GetNodeContent());
|
wxString content(elLocaleNote->GetNodeContent());
|
||||||
size_t len = wxHexDecodedSize(content.length());
|
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) {
|
if (res != wxCONV_FAILED) {
|
||||||
hashOrig.SetDataLen(res);
|
hashOrig.SetDataLen(res);
|
||||||
if (hash.GetDataLen() == hashOrig.GetDataLen() &&
|
if (hash.GetDataLen() == hashOrig.GetDataLen() &&
|
||||||
|
@ -334,7 +334,7 @@ bool wxUpdCheckThread::ParseCatalogue(const wxXmlDocument &doc)
|
|||||||
// Read the hash.
|
// Read the hash.
|
||||||
wxString content(elLocaleNote->GetNodeContent());
|
wxString content(elLocaleNote->GetNodeContent());
|
||||||
size_t len = wxHexDecodedSize(content.length());
|
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)
|
if (res != wxCONV_FAILED)
|
||||||
hash.SetDataLen(res);
|
hash.SetDataLen(res);
|
||||||
else
|
else
|
||||||
@ -409,7 +409,7 @@ bool wxUpdCheckThread::ReadUpdatePackageMeta()
|
|||||||
if (m_config.Read(wxT("PackageHash"), &str)) {
|
if (m_config.Read(wxT("PackageHash"), &str)) {
|
||||||
// Convert to binary.
|
// Convert to binary.
|
||||||
size_t len = wxHexDecodedSize(str.length());
|
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) {
|
if (res != wxCONV_FAILED) {
|
||||||
m_hash.SetDataLen(res);
|
m_hash.SetDataLen(res);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user