summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-10-04 21:36:27 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-10-04 21:45:15 -0500
commit86a3fe47a66950e26d23d7d7f2680fa7d4fb0839 (patch)
tree25428c7b0fe02b1e68c082dcb2f65b444c6f5a85
parent34823ac17d9e00fc7ca5db4cff3a4c8211c39142 (diff)
coverity#704049 Unchecked return value
Gold? broken since 3edb1dcdc82304c418fc32212bb0bdf2c92e414e June 26 2002 ? Change-Id: I7f0bc4899070daff8329d6f66315956a7ed6084c
-rw-r--r--sw/source/core/tox/txmsrt.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/core/tox/txmsrt.cxx b/sw/source/core/tox/txmsrt.cxx
index 325b38977913..ee76ab11f289 100644
--- a/sw/source/core/tox/txmsrt.cxx
+++ b/sw/source/core/tox/txmsrt.cxx
@@ -245,9 +245,10 @@ bool SwTOXSortTabBase::operator<( const SwTOXSortTabBase& rCmp )
// Both pointers exist -> compare text
// else -> compare AlternativeText
if( ( pEnd && pEndCmp ) || ( !pEnd && !pEndCmp ) )
- pTOXIntl->IsEqual( GetTxt(), GetLocale(),
- rCmp.GetTxt(), rCmp.GetLocale() );
-
+ {
+ return pTOXIntl->IsEqual( GetTxt(), GetLocale(),
+ rCmp.GetTxt(), rCmp.GetLocale() );
+ }
if( pEnd && !pEndCmp )
return true;
}