diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-06-13 21:27:26 +0200 |
---|---|---|
committer | Tomáš Chvátal <tchvatal@suse.cz> | 2013-06-13 21:22:44 +0000 |
commit | 059f041dfdffe0630ec573fb444c51cc463b90b1 (patch) | |
tree | 72dfd7d7bcc191818746ac2ef9db4c87f8dd8d91 /binaryurp/source | |
parent | 6372309a0d285f4a176dbcded3f18b72220e123a (diff) |
cppcheck: fix duplicateExpression
Change-Id: If3b7b1faab858afa82d4c665ee1a5036190e69aa
Reviewed-on: https://gerrit.libreoffice.org/4278
Reviewed-by: Tomáš Chvátal <tchvatal@suse.cz>
Tested-by: Tomáš Chvátal <tchvatal@suse.cz>
Diffstat (limited to 'binaryurp/source')
-rw-r--r-- | binaryurp/source/lessoperators.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binaryurp/source/lessoperators.cxx b/binaryurp/source/lessoperators.cxx index 55f3a49c2340..3a515f549f22 100644 --- a/binaryurp/source/lessoperators.cxx +++ b/binaryurp/source/lessoperators.cxx @@ -36,7 +36,7 @@ bool operator<( const TypeDescription& rLeft, const TypeDescription& rRight) { assert( rLeft.is() && rRight.is()); const typelib_TypeDescription& rA = *rLeft.get(); const typelib_TypeDescription& rB = *rRight.get(); - if( rA.eTypeClass != rA.eTypeClass) + if( rA.eTypeClass != rB.eTypeClass) return (rA.eTypeClass < rB.eTypeClass); const sal_Int32 nCmp = rtl_ustr_compare_WithLength( rA.pTypeName->buffer, rA.pTypeName->length, |