mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-30 05:29:41 +01:00
fixed AUtoPtr/SharedPtr specialization
This commit is contained in:
@@ -1822,8 +1822,8 @@ public:
|
|||||||
static void extract(std::size_t pos, Poco::AutoPtr<T>& obj, const Poco::AutoPtr<T>& defVal, AbstractExtractor* pExt)
|
static void extract(std::size_t pos, Poco::AutoPtr<T>& obj, const Poco::AutoPtr<T>& defVal, AbstractExtractor* pExt)
|
||||||
{
|
{
|
||||||
poco_assert_dbg (pExt != 0);
|
poco_assert_dbg (pExt != 0);
|
||||||
if (!obj)
|
|
||||||
obj = new T();
|
obj = Poco::AutoPtr<T>(new T());
|
||||||
if (defVal)
|
if (defVal)
|
||||||
TypeHandler<T>::extract(pos, *obj, *defVal, pExt);
|
TypeHandler<T>::extract(pos, *obj, *defVal, pExt);
|
||||||
else
|
else
|
||||||
@@ -1864,8 +1864,8 @@ public:
|
|||||||
static void extract(std::size_t pos, Poco::SharedPtr<T>& obj, const Poco::SharedPtr<T>& defVal, AbstractExtractor* pExt)
|
static void extract(std::size_t pos, Poco::SharedPtr<T>& obj, const Poco::SharedPtr<T>& defVal, AbstractExtractor* pExt)
|
||||||
{
|
{
|
||||||
poco_assert_dbg (pExt != 0);
|
poco_assert_dbg (pExt != 0);
|
||||||
if (!obj)
|
|
||||||
obj = new T();
|
obj = Poco::SharedPtr<T>(new T());
|
||||||
if (defVal)
|
if (defVal)
|
||||||
TypeHandler<T>::extract(pos, *obj, *defVal, pExt);
|
TypeHandler<T>::extract(pos, *obj, *defVal, pExt);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user