mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 09:12:28 +02:00
factor out Var destruction
This commit is contained in:
@@ -79,15 +79,7 @@ Var::Var(const Var& other)
|
||||
|
||||
Var::~Var()
|
||||
{
|
||||
if(!isEmpty())
|
||||
{
|
||||
#ifndef POCO_NO_SOO
|
||||
if(_placeholder.isLocal())
|
||||
content()->~VarHolder();
|
||||
else
|
||||
#endif
|
||||
delete content();
|
||||
}
|
||||
destruct();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user