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
This commit is contained in:
@@ -540,13 +540,13 @@ public:
|
|||||||
@param rRef interface reference
|
@param rRef interface reference
|
||||||
@return interface reference of demanded type (may be null)
|
@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.
|
/** Queries given interface for type interface_type.
|
||||||
|
|
||||||
@param pInterface interface pointer
|
@param pInterface interface pointer
|
||||||
@return interface reference of demanded type (may be null)
|
@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
|
/// @cond INTERNAL
|
||||||
|
Reference in New Issue
Block a user