Kaydet (Commit) 059f041d authored tarafından Julien Nabet's avatar Julien Nabet Kaydeden (comit) Tomáš Chvátal

cppcheck: fix duplicateExpression

Change-Id: If3b7b1faab858afa82d4c665ee1a5036190e69aa
Reviewed-on: https://gerrit.libreoffice.org/4278Reviewed-by: 's avatarTomáš Chvátal <tchvatal@suse.cz>
Tested-by: 's avatarTomáš Chvátal <tchvatal@suse.cz>
üst 6372309a
...@@ -36,7 +36,7 @@ bool operator<( const TypeDescription& rLeft, const TypeDescription& rRight) { ...@@ -36,7 +36,7 @@ bool operator<( const TypeDescription& rLeft, const TypeDescription& rRight) {
assert( rLeft.is() && rRight.is()); assert( rLeft.is() && rRight.is());
const typelib_TypeDescription& rA = *rLeft.get(); const typelib_TypeDescription& rA = *rLeft.get();
const typelib_TypeDescription& rB = *rRight.get(); const typelib_TypeDescription& rB = *rRight.get();
if( rA.eTypeClass != rA.eTypeClass) if( rA.eTypeClass != rB.eTypeClass)
return (rA.eTypeClass < rB.eTypeClass); return (rA.eTypeClass < rB.eTypeClass);
const sal_Int32 nCmp = rtl_ustr_compare_WithLength( const sal_Int32 nCmp = rtl_ustr_compare_WithLength(
rA.pTypeName->buffer, rA.pTypeName->length, rA.pTypeName->buffer, rA.pTypeName->length,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment