summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/cellsuno.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/unoobj/cellsuno.cxx')
-rw-r--r--sc/source/ui/unoobj/cellsuno.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index bf4ad3870802..919533227a82 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -9395,7 +9395,7 @@ struct ScUniqueFormatsOrder
bool operator()( const ScRangeList& rList1, const ScRangeList& rList2 ) const
{
// all range lists have at least one entry
- OSL_ENSURE( rList1.size() > 0 && rList2.size() > 0, "ScUniqueFormatsOrder: empty list" );
+ OSL_ENSURE( !rList1.empty() && !rList2.empty(), "ScUniqueFormatsOrder: empty list" );
// compare start positions using ScAddress comparison operator
return ( rList1[ 0 ].aStart < rList2[ 0 ].aStart );
@@ -9479,7 +9479,7 @@ uno::Type SAL_CALL ScUniqueCellFormatsObj::getElementType()
sal_Bool SAL_CALL ScUniqueCellFormatsObj::hasElements()
{
SolarMutexGuard aGuard;
- return ( aRangeLists.size() != 0 );
+ return ( !aRangeLists.empty() );
}
// XEnumerationAccess