include/com/sun/star/uno/Reference.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 7242fe6e3360843f9ef5ce07b447de729323a3c8 Author: Stephan Bergmann <[email protected]> Date: Mon Jun 16 10:22:31 2014 +0200 SAL_WARN_UNUSED_RESULT for static Reference::query function ...which the recent loplugin:staticcall changes showed was occasionally used apparently under the assumption that it was non-static and changed the object it was called on. Change-Id: I989a2a4ed3886d7f370855c9e8c1867e646c059b diff --git a/include/com/sun/star/uno/Reference.h b/include/com/sun/star/uno/Reference.h index 3b72193..ec45f44 100644 --- a/include/com/sun/star/uno/Reference.h +++ b/include/com/sun/star/uno/Reference.h @@ -540,13 +540,13 @@ public: @param rRef interface reference @return interface reference of demanded type (may be null) */ - inline static Reference< interface_type > SAL_CALL query( const BaseReference & rRef ); + inline static SAL_WARN_UNUSED_RESULT Reference< interface_type > SAL_CALL query( const BaseReference & rRef ); /** Queries given interface for type interface_type. @param pInterface interface pointer @return interface reference of demanded type (may be null) */ - inline static Reference< interface_type > SAL_CALL query( XInterface * pInterface ); + inline static SAL_WARN_UNUSED_RESULT Reference< interface_type > SAL_CALL query( XInterface * pInterface ); }; /// @cond INTERNAL _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
