diff options
author | Noel Grandin <noel@peralex.com> | 2016-07-01 13:30:38 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-07-04 12:30:09 +0000 |
commit | 4e3ed5aeb5c998ee4077138fe802b471bea9fcb2 (patch) | |
tree | beeb4fd534bc37de229e96587643a5182e1fc10f | |
parent | 6964c17415ae2d77a6aa50eeb8464faba7a47d14 (diff) |
use SAL_DEPRECATED in uno::Reference
and fix a couple of usages that have crept in
Change-Id: Ia3e7fcc05dac6e0d205e69c0e0372c74653e7c5e
Reviewed-on: https://gerrit.libreoffice.org/26851
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r-- | binaryurp/source/bridge.cxx | 2 | ||||
-rw-r--r-- | include/com/sun/star/uno/Reference.h | 4 | ||||
-rw-r--r-- | sax/source/fastparser/fastparser.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/binaryurp/source/bridge.cxx b/binaryurp/source/bridge.cxx index 1bfdd17def98..d47b83410708 100644 --- a/binaryurp/source/bridge.cxx +++ b/binaryurp/source/bridge.cxx @@ -882,7 +882,7 @@ css::uno::Reference< css::uno::XInterface > Bridge::getInstance( binaryToCppMapping_.mapInterface( *static_cast< uno_Interface ** >(ret.getValue(ifc)), ifc.get())), - css::uno::UNO_REF_NO_ACQUIRE); + SAL_NO_ACQUIRE); } OUString Bridge::getName() throw (css::uno::RuntimeException, std::exception) { diff --git a/include/com/sun/star/uno/Reference.h b/include/com/sun/star/uno/Reference.h index 5f4fea0d87fa..e657fd84b197 100644 --- a/include/com/sun/star/uno/Reference.h +++ b/include/com/sun/star/uno/Reference.h @@ -333,7 +333,7 @@ public: @param pInterface another reference @param dummy UNO_REF_NO_ACQUIRE to force obvious distinction to other constructors */ - inline Reference( interface_type * pInterface, UnoReference_NoAcquire dummy ); + inline SAL_DEPRECATED("use SAL_NO_ACQUIRE version") Reference( interface_type * pInterface, UnoReference_NoAcquire dummy ); /** Constructor: Queries given interface for reference interface type (interface_type). @@ -451,7 +451,7 @@ public: @param dummy UNO_REF_NO_ACQUIRE to force obvious distinction to set methods @return true, if non-null interface was set */ - inline bool SAL_CALL set( interface_type * pInterface, UnoReference_NoAcquire dummy); + inline SAL_DEPRECATED("use SAL_NO_ACQUIRE version") bool SAL_CALL set( interface_type * pInterface, UnoReference_NoAcquire dummy); /** Queries given interface for reference interface type (interface_type) and sets it. An interface already set will be released. diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx index fe69161888bf..b9d9bfa3c3f2 100644 --- a/sax/source/fastparser/fastparser.cxx +++ b/sax/source/fastparser/fastparser.cxx @@ -450,7 +450,7 @@ void Entity::startElement( Event *pEvent ) } // swap the reference we own in to avoid referencing thrash. maContextStack.top().mxContext.set( static_cast<XFastContextHandler *>( xContext.get() ) ); - xContext.set( nullptr, UNO_REF_NO_ACQUIRE ); + xContext.set( nullptr, SAL_NO_ACQUIRE ); } catch (const Exception&) { |