summaryrefslogtreecommitdiff
path: root/ucb
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 /ucb
parent5a849bb5317ad73bb43b2b618b14bc0e8751fff6 (diff)
just silence the auto_ptr deprecations in isolation
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav/ContentProperties.cxx2
-rw-r--r--ucb/source/ucp/webdav/webdavcontent.cxx33
-rw-r--r--ucb/source/ucp/webdav/webdavcontent.hxx4
-rw-r--r--ucb/source/ucp/webdav/webdavcontentcaps.cxx4
4 files changed, 42 insertions, 1 deletions
diff --git a/ucb/source/ucp/webdav/ContentProperties.cxx b/ucb/source/ucp/webdav/ContentProperties.cxx
index de6b1ff245e1..c7c5ebc05dbd 100644
--- a/ucb/source/ucp/webdav/ContentProperties.cxx
+++ b/ucb/source/ucp/webdav/ContentProperties.cxx
@@ -613,7 +613,9 @@ CachableContentProperties::CachableContentProperties(
void CachableContentProperties::addProperties(
const ContentProperties & rProps )
{
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH
const std::auto_ptr< PropertyValueMap > & props = rProps.getProperties();
+ SAL_WNODEPRECATED_DECLARATIONS_POP
PropertyValueMap::const_iterator it = props->begin();
const PropertyValueMap::const_iterator end = props->end();
diff --git a/ucb/source/ucp/webdav/webdavcontent.cxx b/ucb/source/ucp/webdav/webdavcontent.cxx
index 3d03500f02cd..ae70b69a7c21 100644
--- a/ucb/source/ucp/webdav/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav/webdavcontent.cxx
@@ -549,7 +549,9 @@ uno::Any SAL_CALL Content::execute(
// {
try
{
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH
std::auto_ptr< DAVResourceAccess > xResAccess;
+ SAL_WNODEPRECATED_DECLARATIONS_POP
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
xResAccess.reset( new DAVResourceAccess( *m_xResAccess.get() ) );
@@ -690,7 +692,9 @@ void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ )
{
try
{
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH
std::auto_ptr< DAVResourceAccess > xResAccess;
+ SAL_WNODEPRECATED_DECLARATIONS_POP
{
osl::MutexGuard aGuard( m_aMutex );
xResAccess.reset( new DAVResourceAccess( *m_xResAccess.get() ) );
@@ -765,7 +769,9 @@ void SAL_CALL Content::addProperty( const rtl::OUString& Name,
try
{
// Set property value at server.
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH
std::auto_ptr< DAVResourceAccess > xResAccess;
+ SAL_WNODEPRECATED_DECLARATIONS_POP
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
xResAccess.reset( new DAVResourceAccess( *m_xResAccess.get() ) );
@@ -859,7 +865,9 @@ void SAL_CALL Content::removeProperty( const rtl::OUString& Name )
aProppatchValues.push_back( aValue );
// Remove property value from server.
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH
std::auto_ptr< DAVResourceAccess > xResAccess;
+ SAL_WNODEPRECATED_DECLARATIONS_POP
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
xResAccess.reset( new DAVResourceAccess( *m_xResAccess.get() ) );
@@ -1119,8 +1127,9 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
else
{
// Append all standard UCB, DAV and HTTP properties.
-
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH
const std::auto_ptr< PropertyValueMap > & xProps = rData.getProperties();
+ SAL_WNODEPRECATED_DECLARATIONS_POP
PropertyValueMap::const_iterator it = xProps->begin();
PropertyValueMap::const_iterator end = xProps->end();
@@ -1153,9 +1162,11 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
const uno::Reference< ucb::XCommandEnvironment >& xEnv )
throw ( uno::Exception )
{
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH
std::auto_ptr< ContentProperties > xProps;
std::auto_ptr< ContentProperties > xCachedProps;
std::auto_ptr< DAVResourceAccess > xResAccess;
+ SAL_WNODEPRECATED_DECLARATIONS_POP
rtl::OUString aUnescapedTitle;
bool bHasAll = false;
uno::Reference< lang::XMultiServiceFactory > xSMgr;
@@ -1470,7 +1481,9 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
uno::Reference< ucb::XContentIdentifier > xIdentifier;
rtl::Reference< ContentProvider > xProvider;
sal_Bool bTransient;
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH
std::auto_ptr< DAVResourceAccess > xResAccess;
+ SAL_WNODEPRECATED_DECLARATIONS_POP
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
@@ -1963,7 +1976,9 @@ uno::Any Content::open(
// PUSH: write data
try
{
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH
std::auto_ptr< DAVResourceAccess > xResAccess;
+ SAL_WNODEPRECATED_DECLARATIONS_POP
{
osl::MutexGuard aGuard( m_aMutex );
@@ -2008,7 +2023,9 @@ uno::Any Content::open(
// PULL: wait for client read
try
{
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH
std::auto_ptr< DAVResourceAccess > xResAccess;
+ SAL_WNODEPRECATED_DECLARATIONS_POP
{
osl::MutexGuard aGuard( m_aMutex );
@@ -2078,7 +2095,9 @@ void Content::post(
{
try
{
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH
std::auto_ptr< DAVResourceAccess > xResAccess;
+ SAL_WNODEPRECATED_DECLARATIONS_POP
{
osl::MutexGuard aGuard( m_aMutex );
xResAccess.reset(
@@ -2112,7 +2131,9 @@ void Content::post(
{
try
{
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH
std::auto_ptr< DAVResourceAccess > xResAccess;
+ SAL_WNODEPRECATED_DECLARATIONS_POP
{
osl::MutexGuard aGuard( m_aMutex );
xResAccess.reset(
@@ -2211,7 +2232,9 @@ void Content::insert(
{
sal_Bool bTransient, bCollection;
rtl::OUString aEscapedTitle;
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH
std::auto_ptr< DAVResourceAccess > xResAccess;
+ SAL_WNODEPRECATED_DECLARATIONS_POP
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
@@ -2456,7 +2479,9 @@ void Content::transfer(
uno::Reference< lang::XMultiServiceFactory > xSMgr;
uno::Reference< ucb::XContentIdentifier > xIdentifier;
uno::Reference< ucb::XContentProvider > xProvider;
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH
std::auto_ptr< DAVResourceAccess > xResAccess;
+ SAL_WNODEPRECATED_DECLARATIONS_POP
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
@@ -2754,7 +2779,9 @@ void Content::lock(
{
try
{
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH
std::auto_ptr< DAVResourceAccess > xResAccess;
+ SAL_WNODEPRECATED_DECLARATIONS_POP
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
xResAccess.reset( new DAVResourceAccess( *m_xResAccess.get() ) );
@@ -2794,7 +2821,9 @@ void Content::unlock(
{
try
{
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH
std::auto_ptr< DAVResourceAccess > xResAccess;
+ SAL_WNODEPRECATED_DECLARATIONS_POP
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
xResAccess.reset( new DAVResourceAccess( *m_xResAccess.get() ) );
@@ -3116,6 +3145,7 @@ void Content::cancelCommandExecution(
}
//=========================================================================
+SAL_WNODEPRECATED_DECLARATIONS_PUSH
const rtl::OUString
Content::getBaseURI( const std::auto_ptr< DAVResourceAccess > & rResAccess )
{
@@ -3222,6 +3252,7 @@ const Content::ResourceType & Content::getResourceType(
}
return m_eResourceType;
}
+SAL_WNODEPRECATED_DECLARATIONS_POP
//=========================================================================
const Content::ResourceType & Content::getResourceType(
diff --git a/ucb/source/ucp/webdav/webdavcontent.hxx b/ucb/source/ucp/webdav/webdavcontent.hxx
index 051e6382e73f..2c02ab511c38 100644
--- a/ucb/source/ucp/webdav/webdavcontent.hxx
+++ b/ucb/source/ucp/webdav/webdavcontent.hxx
@@ -128,19 +128,23 @@ private:
exchangeIdentity( const ::com::sun::star::uno::Reference<
::com::sun::star::ucb::XContentIdentifier >& xNewId );
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH
const rtl::OUString
getBaseURI( const std::auto_ptr< DAVResourceAccess > & rResAccess );
+ SAL_WNODEPRECATED_DECLARATIONS_POP
const ResourceType &
getResourceType( const ::com::sun::star::uno::Reference<
::com::sun::star::ucb::XCommandEnvironment >& xEnv )
throw ( ::com::sun::star::uno::Exception );
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH
const ResourceType &
getResourceType( const ::com::sun::star::uno::Reference<
::com::sun::star::ucb::XCommandEnvironment >& xEnv,
const std::auto_ptr< DAVResourceAccess > & rResAccess )
throw ( ::com::sun::star::uno::Exception );
+ SAL_WNODEPRECATED_DECLARATIONS_POP
// Command "open"
com::sun::star::uno::Any open(
diff --git a/ucb/source/ucp/webdav/webdavcontentcaps.cxx b/ucb/source/ucp/webdav/webdavcontentcaps.cxx
index ebcce7401676..ada05794f485 100644
--- a/ucb/source/ucp/webdav/webdavcontentcaps.cxx
+++ b/ucb/source/ucp/webdav/webdavcontentcaps.cxx
@@ -304,8 +304,10 @@ uno::Sequence< beans::Property > Content::getProperties(
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
{
sal_Bool bTransient;
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH
std::auto_ptr< DAVResourceAccess > xResAccess;
std::auto_ptr< ContentProperties > xCachedProps;
+ SAL_WNODEPRECATED_DECLARATIONS_POP
rtl::Reference< ContentProvider > xProvider;
{
@@ -505,8 +507,10 @@ uno::Sequence< beans::Property > Content::getProperties(
const std::set< rtl::OUString >::const_iterator set_end
= aPropSet.end();
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH
const std::auto_ptr< PropertyValueMap > & xProps
= xCachedProps->getProperties();
+ SAL_WNODEPRECATED_DECLARATIONS_POP
PropertyValueMap::const_iterator map_it = xProps->begin();
const PropertyValueMap::const_iterator map_end = xProps->end();