diff options
-rw-r--r-- | vcl/aqua/source/dtrans/HtmlFmtFlt.cxx | 4 | ||||
-rw-r--r-- | vcl/aqua/source/dtrans/PictToBmpFlt.cxx | 4 | ||||
-rw-r--r-- | vcl/source/gdi/print3.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/vcl/aqua/source/dtrans/HtmlFmtFlt.cxx b/vcl/aqua/source/dtrans/HtmlFmtFlt.cxx index 275f5a1cf2a5..0bd461d81096 100644 --- a/vcl/aqua/source/dtrans/HtmlFmtFlt.cxx +++ b/vcl/aqua/source/dtrans/HtmlFmtFlt.cxx @@ -65,9 +65,9 @@ const std::string TAG_END_BODY = std::string("</BODY"); Sequence<sal_Int8> SAL_CALL TextHtmlToHTMLFormat(Sequence<sal_Int8>& aTextHtml) { - OSL_ASSERT(!aTextHtml.isEmpty()); + OSL_ASSERT(aTextHtml.getLength() > 0); - if (aTextHtml.isEmpty()) + if (!(aTextHtml.getLength() > 0)) return Sequence<sal_Int8>(); // fill the buffer with dummy values to calc the exact length diff --git a/vcl/aqua/source/dtrans/PictToBmpFlt.cxx b/vcl/aqua/source/dtrans/PictToBmpFlt.cxx index 4b3d3712e36b..3eb4fb8d49fc 100644 --- a/vcl/aqua/source/dtrans/PictToBmpFlt.cxx +++ b/vcl/aqua/source/dtrans/PictToBmpFlt.cxx @@ -161,7 +161,7 @@ bool ImageToBMP( com::sun::star::uno::Sequence<sal_Int8>& aPict, { aBmp.realloc( [pOut length] ); [pOut getBytes: aBmp.getArray() length: aBmp.getLength()]; - bResult = (!aBmp.isEmpty()); + bResult = (aBmp.getLength() != 0); } } } @@ -190,7 +190,7 @@ bool BMPToImage( com::sun::star::uno::Sequence<sal_Int8>& aBmp, { aPict.realloc( [pOut length] ); [pOut getBytes: aPict.getArray() length: aPict.getLength()]; - bResult = (!aPict.isEmpty()); + bResult = (aPict.getLength() != 0); } } } diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx index abdece652ae1..482491d2c41a 100644 --- a/vcl/source/gdi/print3.cxx +++ b/vcl/source/gdi/print3.cxx @@ -1336,7 +1336,7 @@ void PrinterController::setValue( const beans::PropertyValue& i_rValue ) void PrinterController::setUIOptions( const Sequence< beans::PropertyValue >& i_rOptions ) { - DBG_ASSERT( mpImplData->maUIOptions.isEmpty(), "setUIOptions called twice !" ); + DBG_ASSERT( mpImplData->maUIOptions.getLength() == 0, "setUIOptions called twice !" ); mpImplData->maUIOptions = i_rOptions; |