summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-02-27 17:12:33 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-02-27 17:13:54 +0400
commitc581d33dec47a4c411a034482876543f6357d1e8 (patch)
tree18c1e13d9d5495eb377985bdc8abd61298ba55c1 /vcl
parentdisable warnigns as errors for KDE3 code (diff)
downloadcore-c581d33dec47a4c411a034482876543f6357d1e8.tar.gz
core-c581d33dec47a4c411a034482876543f6357d1e8.zip
there is no Sequence::isEmpty()
Diffstat (limited to 'vcl')
-rw-r--r--vcl/aqua/source/dtrans/HtmlFmtFlt.cxx4
-rw-r--r--vcl/aqua/source/dtrans/PictToBmpFlt.cxx4
-rw-r--r--vcl/source/gdi/print3.cxx2
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;