diff options
author | Igor Pavlov <ipavlov@users.sourceforge.net> | 2021-07-23 01:00:14 +0300 |
---|---|---|
committer | Kornel <kornel@geekhood.net> | 2021-07-23 01:00:14 +0300 |
commit | 585698650f7257d2cefa6a3a2a49d5bbe84fd9b2 (patch) | |
tree | 8900be42e892a440bbd1063804b0557288c2f97f /CPP/7zip/UI/Agent/AgentProxy.h | |
parent | 4a960640a340a848a2d2c27f19b339c2c3d3f734 (diff) |
21.0221.02
Diffstat (limited to 'CPP/7zip/UI/Agent/AgentProxy.h')
-rw-r--r-- | CPP/7zip/UI/Agent/AgentProxy.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CPP/7zip/UI/Agent/AgentProxy.h b/CPP/7zip/UI/Agent/AgentProxy.h index 49012676..f2cb3d7a 100644 --- a/CPP/7zip/UI/Agent/AgentProxy.h +++ b/CPP/7zip/UI/Agent/AgentProxy.h @@ -12,7 +12,7 @@ struct CProxyFile bool NeedDeleteName; CProxyFile(): Name(NULL), NameLen(0), NeedDeleteName(false) {} - ~CProxyFile() { if (NeedDeleteName) delete [](wchar_t *)Name; } + ~CProxyFile() { if (NeedDeleteName) delete [](wchar_t *)(void *)Name; } // delete [](wchar_t *)Name; }; const unsigned k_Proxy_RootDirIndex = 0; @@ -35,7 +35,7 @@ struct CProxyDir bool CrcIsDefined; CProxyDir(): Name(NULL), NameLen(0), ParentDir(-1) {}; - ~CProxyDir() { delete [](wchar_t *)Name; } + ~CProxyDir() { delete [](wchar_t *)(void *)Name; } void Clear(); bool IsLeaf() const { return ArcIndex >= 0; } @@ -93,7 +93,7 @@ struct CProxyFile2 ~CProxyFile2() { if (NeedDeleteName) - delete [](wchar_t *)Name; + delete [](wchar_t *)(void *)Name; } }; |