summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-16 10:22:31 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-09-17 09:42:19 +0200
commit1131a069b0aa2b2e3f0b7bdd083ebe95d6cec719 (patch)
tree9d8740f102dfcfa819a0fa609e709d3aaa7d2857 /include
parent85406fb19b4576d34fe132c8c3ee0b3c4846459f (diff)
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. (cherry picked from commit 7242fe6e3360843f9ef5ce07b447de729323a3c8) Conflicts: include/com/sun/star/uno/Reference.h svtools/source/uno/treecontrolpeer.cxx Change-Id: I989a2a4ed3886d7f370855c9e8c1867e646c059b
Diffstat (limited to 'include')
-rw-r--r--include/com/sun/star/uno/Reference.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/com/sun/star/uno/Reference.h b/include/com/sun/star/uno/Reference.h
index b1299fd42ba8..636a339726f3 100644
--- a/include/com/sun/star/uno/Reference.h
+++ b/include/com/sun/star/uno/Reference.h
@@ -546,13 +546,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 ) SAL_THROW( (RuntimeException) );
+ inline static SAL_WARN_UNUSED_RESULT Reference< interface_type > SAL_CALL query( const BaseReference & rRef ) SAL_THROW( (RuntimeException) );
/** 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 ) SAL_THROW( (RuntimeException) );
+ inline static SAL_WARN_UNUSED_RESULT Reference< interface_type > SAL_CALL query( XInterface * pInterface ) SAL_THROW( (RuntimeException) );
};
/// @cond INTERNAL