diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-05-18 18:09:04 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-05-18 18:09:04 +0200 |
commit | 700e262a4943a6d279cc4800bb9bd173aff0c3e1 (patch) | |
tree | bb19edb2e38a2571bf1a7cf8434ddbc243e97441 /include/toolkit | |
parent | c345299186841ccb1fe846f6f277039c188941d6 (diff) |
Some manual loplugin:comparisonwithconstant fixes in macros...
...and other code where the plugin wouldn't rewrite automatically
Change-Id: I84cac6398cd100e9830ef7e1944f32a8af048534
Diffstat (limited to 'include/toolkit')
-rw-r--r-- | include/toolkit/helper/macros.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/toolkit/helper/macros.hxx b/include/toolkit/helper/macros.hxx index 0bb97433cbfe..8df7340912b2 100644 --- a/include/toolkit/helper/macros.hxx +++ b/include/toolkit/helper/macros.hxx @@ -27,7 +27,7 @@ #define IMPL_XUNOTUNNEL_MINIMAL( ClassName ) \ sal_Int64 ClassName::getSomething( const css::uno::Sequence< sal_Int8 >& rIdentifier ) \ { \ - if( ( rIdentifier.getLength() == 16 ) && ( 0 == memcmp( ClassName::GetUnoTunnelId().getConstArray(), rIdentifier.getConstArray(), 16 ) ) ) \ + if( ( rIdentifier.getLength() == 16 ) && ( memcmp( ClassName::GetUnoTunnelId().getConstArray(), rIdentifier.getConstArray(), 16 ) == 0 ) ) \ { \ return sal::static_int_cast< sal_Int64 >(reinterpret_cast< sal_IntPtr >(this)); \ } \ |