summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-05-08 15:18:37 +0200
committerMichael Stahl <mstahl@redhat.com>2012-05-09 08:52:51 +0200
commit3893b922b3ffe03dcf92c4c60cd8c60916ae8cf1 (patch)
tree705b1070941e3fa3311d3ed781b824899c92623c /sw/source/filter/xml
parenta8f3f3eea292ab04bb79eb09e7ad0b51b21e00f7 (diff)
also convert assertions in previous commit
Diffstat (limited to 'sw/source/filter/xml')
-rw-r--r--sw/source/filter/xml/xmltbli.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/xml/xmltbli.cxx b/sw/source/filter/xml/xmltbli.cxx
index a021c93c3575..b5d3f37eaec0 100644
--- a/sw/source/filter/xml/xmltbli.cxx
+++ b/sw/source/filter/xml/xmltbli.cxx
@@ -350,7 +350,7 @@ inline const SwXMLTableCell_Impl *SwXMLTableRow_Impl::GetCell( sal_uInt32 nCol )
OSL_ENSURE( nCol < USHRT_MAX,
"SwXMLTableRow_Impl::GetCell: column number is to big" );
// #i95726# - some fault tolerance
- OSL_ENSURE( nCol < aCells.Count(),
+ OSL_ENSURE( nCol < aCells.size(),
"SwXMLTableRow_Impl::GetCell: column number is out of bound" );
return nCol < aCells.size() ? &aCells[(sal_uInt16)nCol] : 0;
}
@@ -360,7 +360,7 @@ inline SwXMLTableCell_Impl *SwXMLTableRow_Impl::GetCell( sal_uInt32 nCol )
OSL_ENSURE( nCol < USHRT_MAX,
"SwXMLTableRow_Impl::GetCell: column number is to big" );
// #i95726# - some fault tolerance
- OSL_ENSURE( nCol < aCells.Count(),
+ OSL_ENSURE( nCol < aCells.size(),
"SwXMLTableRow_Impl::GetCell: column number is out of bound" );
return nCol < aCells.size() ? &aCells[(sal_uInt16)nCol] : 0;
}
@@ -380,7 +380,7 @@ void SwXMLTableRow_Impl::Expand( sal_uInt32 nCells, sal_Bool bOneCell )
nColSpan--;
}
- OSL_ENSURE( nCells<=aCells.Count(),
+ OSL_ENSURE( nCells<=aCells.size(),
"SwXMLTableRow_Impl::Expand: wrong number of cells" );
}