diff options
-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&) { |