summaryrefslogtreecommitdiff
path: root/include/comphelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-05-18 18:09:04 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-05-18 18:09:04 +0200
commit700e262a4943a6d279cc4800bb9bd173aff0c3e1 (patch)
treebb19edb2e38a2571bf1a7cf8434ddbc243e97441 /include/comphelper
parentc345299186841ccb1fe846f6f277039c188941d6 (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/comphelper')
-rw-r--r--include/comphelper/servicehelper.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/comphelper/servicehelper.hxx b/include/comphelper/servicehelper.hxx
index d1519ed14026..38641e10d7db 100644
--- a/include/comphelper/servicehelper.hxx
+++ b/include/comphelper/servicehelper.hxx
@@ -78,8 +78,8 @@ classname* classname::getImplementation( const uno::Reference< uno::XInterface >
UNO3_GETIMPLEMENTATION_BASE_IMPL(classname)\
sal_Int64 SAL_CALL classname::getSomething( const css::uno::Sequence< sal_Int8 >& rId ) \
{ \
- if( rId.getLength() == 16 && 0 == memcmp( getUnoTunnelId().getConstArray(), \
- rId.getConstArray(), 16 ) ) \
+ if( rId.getLength() == 16 && memcmp( getUnoTunnelId().getConstArray(), \
+ rId.getConstArray(), 16 ) == 0 ) \
{ \
return sal::static_int_cast<sal_Int64>(reinterpret_cast<sal_IntPtr>(this)); \
} \
@@ -90,8 +90,8 @@ sal_Int64 SAL_CALL classname::getSomething( const css::uno::Sequence< sal_Int8 >
UNO3_GETIMPLEMENTATION_BASE_IMPL(classname)\
sal_Int64 SAL_CALL classname::getSomething( const css::uno::Sequence< sal_Int8 >& rId ) \
{ \
- if( rId.getLength() == 16 && 0 == memcmp( getUnoTunnelId().getConstArray(), \
- rId.getConstArray(), 16 ) ) \
+ if( rId.getLength() == 16 && memcmp( getUnoTunnelId().getConstArray(), \
+ rId.getConstArray(), 16 ) == 0 ) \
{ \
return sal::static_int_cast<sal_Int64>(reinterpret_cast<sal_IntPtr>(this)); \
} \