mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-16 18:56:52 +02:00
#538 prevent destructors from throwing exceptions
This commit is contained in:
@@ -592,7 +592,7 @@ private:
|
||||
|
||||
void destruct()
|
||||
{
|
||||
if(!isEmpty()) delete content();
|
||||
if (!isEmpty()) delete content();
|
||||
}
|
||||
|
||||
VarHolder* _pHolder;
|
||||
@@ -636,7 +636,7 @@ private:
|
||||
|
||||
void construct(const Var& other)
|
||||
{
|
||||
if(!other.isEmpty())
|
||||
if (!other.isEmpty())
|
||||
other.content()->clone(&_placeholder);
|
||||
else
|
||||
_placeholder.erase();
|
||||
@@ -644,9 +644,9 @@ private:
|
||||
|
||||
void destruct()
|
||||
{
|
||||
if(!isEmpty())
|
||||
if (!isEmpty())
|
||||
{
|
||||
if(_placeholder.isLocal())
|
||||
if (_placeholder.isLocal())
|
||||
content()->~VarHolder();
|
||||
else
|
||||
delete content();
|
||||
|
Reference in New Issue
Block a user