On 02/21/2012 08:57 PM, Thomas Arnhold wrote:
commit 45ad6029e1422c659e627bb30ecda50ccb61060c
Author: Thomas Arnhold<tho...@arnhold.org>
Date: Tue Feb 21 19:46:36 2012 +0100
WaE: duplicateBranch and use sal_False
diff --git a/sc/source/core/data/dptabres.cxx b/sc/source/core/data/dptabres.cxx
index 5c4039a..7d98440 100644
--- a/sc/source/core/data/dptabres.cxx
+++ b/sc/source/core/data/dptabres.cxx
@@ -174,12 +174,7 @@ static sal_Bool lcl_IsLess( const ScDPDataMember*
pDataMember1, const ScDPDataMe
sal_Bool bError1 = pAgg1&& pAgg1->HasError();
sal_Bool bError2 = pAgg2&& pAgg2->HasError();
if ( bError1 )
- {
- if ( bError2 )
- return false; // equal
- else
- return false; // errors are always sorted at the end
- }
+ return sal_False; // equal
Just FYI, there should ~never be a need to go back from "false" to
"sal_False" (we generally want to move any uses of the latter to become
uses of the former; so if you seek consistency across a function, it
might be better to replace other occurrences of sal_True/False than to
do the opposite).
Stephan
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice