From c581d33dec47a4c411a034482876543f6357d1e8 Mon Sep 17 00:00:00 2001 From: Ivan Timofeev Date: Mon, 27 Feb 2012 17:12:33 +0400 Subject: there is no Sequence::isEmpty() --- vcl/aqua/source/dtrans/HtmlFmtFlt.cxx | 4 ++-- vcl/aqua/source/dtrans/PictToBmpFlt.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'vcl/aqua') 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(" SAL_CALL TextHtmlToHTMLFormat(Sequence& aTextHtml) { - OSL_ASSERT(!aTextHtml.isEmpty()); + OSL_ASSERT(aTextHtml.getLength() > 0); - if (aTextHtml.isEmpty()) + if (!(aTextHtml.getLength() > 0)) return Sequence(); // 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& 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& aBmp, { aPict.realloc( [pOut length] ); [pOut getBytes: aPict.getArray() length: aPict.getLength()]; - bResult = (!aPict.isEmpty()); + bResult = (aPict.getLength() != 0); } } } -- cgit