Make enum wxHexDecodeMode scoped

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman
2020-01-04 11:31:07 +01:00
parent fb0277dbfb
commit 7f600693c2
3 changed files with 10 additions and 11 deletions

View File

@@ -71,8 +71,8 @@ size_t WXEXTEND_API wxHexDecode(void *dst_, size_t dstLen, const char *src, size
else if ( 'A' <= c && c <= 'F' ) in = (in << 4) | (c - 'A' + 10), n++;
else if ( 'a' <= c && c <= 'f' ) in = (in << 4) | (c - 'a' + 10), n++;
else {
if ( mode == wxHexDecodeMode_Relaxed ||
mode == wxHexDecodeMode_SkipWS && isspace(c) )
if ( mode == wxHexDecodeMode::Relaxed ||
mode == wxHexDecodeMode::SkipWS && isspace(c) )
continue;
if ( posErr )