summaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-22 15:00:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-22 15:01:05 +0100
commit871426533f7afe31bc451fa6b407b83db8e52827 (patch)
treeed60cee61ebee91994eaffc9c9a3638836ed2ab4 /registry
parent5a849bb5317ad73bb43b2b618b14bc0e8751fff6 (diff)
just silence the auto_ptr deprecations in isolation
Diffstat (limited to 'registry')
-rw-r--r--registry/source/regimpl.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx
index 0bd28d0a2fb8..3f709be508be 100644
--- a/registry/source/regimpl.cxx
+++ b/registry/source/regimpl.cxx
@@ -744,7 +744,9 @@ RegError ORegistry::openKey(RegKeyHandle hKey, const OUString& keyName,
break;
}
+SAL_WNODEPRECATED_DECLARATIONS_PUSH
std::auto_ptr< ORegKey > p(new ORegKey(path, this));
+SAL_WNODEPRECATED_DECLARATIONS_POP
i = m_openKeyTable.insert(std::make_pair(path, p.get())).first;
p.release();
} else {
@@ -969,7 +971,9 @@ RegError ORegistry::saveKey(RegKeyHandle hKey, const OUString& regFileName,
RegError _ret = REG_NO_ERROR;
ORegKey* pKey = static_cast< ORegKey* >(hKey);
+SAL_WNODEPRECATED_DECLARATIONS_PUSH
std::auto_ptr< ORegistry > pReg (new ORegistry());
+SAL_WNODEPRECATED_DECLARATIONS_POP
_ret = pReg->initRegistry(regFileName, REG_CREATE);
if (_ret != REG_NO_ERROR)
return _ret;