diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-02-27 17:12:33 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-02-27 17:13:54 +0400 |
commit | c581d33dec47a4c411a034482876543f6357d1e8 (patch) | |
tree | 18c1e13d9d5495eb377985bdc8abd61298ba55c1 /vcl/aqua | |
parent | a667f08798297b9fa5f78a327250f24cb8b1638c (diff) |
there is no Sequence::isEmpty()
Diffstat (limited to 'vcl/aqua')
-rw-r--r-- | vcl/aqua/source/dtrans/HtmlFmtFlt.cxx | 4 | ||||
-rw-r--r-- | vcl/aqua/source/dtrans/PictToBmpFlt.cxx | 4 |
2 files changed, 4 insertions, 4 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); } } } |