diff options
Diffstat (limited to 'vcl/source/edit')
-rw-r--r-- | vcl/source/edit/textdata.cxx | 2 | ||||
-rw-r--r-- | vcl/source/edit/texteng.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/edit/textdata.cxx b/vcl/source/edit/textdata.cxx index 493cb434e5de..63fdab60ffef 100644 --- a/vcl/source/edit/textdata.cxx +++ b/vcl/source/edit/textdata.cxx @@ -117,7 +117,7 @@ void TETextPortionList::Reset() void TETextPortionList::DeleteFromPortion( std::size_t nDelFrom ) { - SAL_WARN_IF( ( nDelFrom >= maPortions.size() ) && ( (nDelFrom != 0) || (maPortions.size() != 0) ), "vcl", "DeleteFromPortion: Out of range" ); + SAL_WARN_IF( ( nDelFrom >= maPortions.size() ) && ( (nDelFrom != 0) || (!maPortions.empty()) ), "vcl", "DeleteFromPortion: Out of range" ); maPortions.erase( maPortions.begin() + nDelFrom, maPortions.end() ); } diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index b15446522b35..08e1ba46212e 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -2353,7 +2353,7 @@ bool TextEngine::CreateLines( sal_uInt32 nPara ) pTEParaPortion->GetLines().end() ); } - SAL_WARN_IF( !pTEParaPortion->GetLines().size(), "vcl", "CreateLines: No Line!" ); + SAL_WARN_IF( pTEParaPortion->GetLines().empty(), "vcl", "CreateLines: No Line!" ); pTEParaPortion->SetValid(); |