diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-01-19 15:47:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-01-19 20:54:35 +0100 |
commit | 3c7ad92d43b0823b9f69b0d44e86f674f9dcf070 (patch) | |
tree | c085d9b8e34b737420a2fb279b4aaec11750b774 /stoc/test | |
parent | 3520d6dfdd3adc9ac328ca9050f796478aaf2020 (diff) |
Drop UNO_REF_QUERY[_THROW] duplicates of UNO_QUERY[_THROW].
They are virtually unused (at least the LibO code base has only a
single use of UNO_REF_QUERY) but confuse static analysis tools that
classify unused function parameters as "tags" (which legalizes the
unusedness of those parameters) if they are of an enum type with
exactly one value defined.
Diffstat (limited to 'stoc/test')
-rw-r--r-- | stoc/test/testiadapter.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stoc/test/testiadapter.cxx b/stoc/test/testiadapter.cxx index 28468ce25f1d..eb0fa8696091 100644 --- a/stoc/test/testiadapter.cxx +++ b/stoc/test/testiadapter.cxx @@ -1005,7 +1005,7 @@ static sal_Bool test_invocation( const Reference< XMultiServiceFactory > & xMgr Reference< XLanguageBindingTest > xOriginal( (XLanguageBindingTest *)new Test_Impl() ); Any aOriginal( &xOriginal, ::getCppuType( &xOriginal ) ); Reference< XInvocation > xInvok( - xInvocFac->createInstanceWithArguments( Sequence< Any >( &aOriginal, 1 ) ), UNO_REF_QUERY ); + xInvocFac->createInstanceWithArguments( Sequence< Any >( &aOriginal, 1 ) ), UNO_QUERY ); Reference< XLanguageBindingTest > xLBT( xAdapFac->createAdapter( xInvok, ::getCppuType( (const Reference< XLanguageBindingTest > *)0 ) ), UNO_QUERY ); |