diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-09-20 09:43:40 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-09-20 09:51:27 +0200 |
commit | 691518d27ae5d552a75ac14f856dd31d686c2864 (patch) | |
tree | 8f4f2e7c21fd3424dee265bd18d1cabc746de43a /sw | |
parent | 9035f006f34335ded10b042aabaf9ddc339b18f0 (diff) |
Remove some warnings
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/inc/tblrwcl.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/inc/tblrwcl.hxx b/sw/source/core/inc/tblrwcl.hxx index df93e44c27cc..fd9e0dfb0d8c 100644 --- a/sw/source/core/inc/tblrwcl.hxx +++ b/sw/source/core/inc/tblrwcl.hxx @@ -27,6 +27,7 @@ ************************************************************************/ #ifndef _TBLRWCL_HXX #define _TBLRWCL_HXX +#include <cstddef> #include <vector> #include <swtypes.hxx> #include <tblsel.hxx> @@ -103,11 +104,11 @@ public: void AddToUndoHistory( const SwCntntNode& rNd ); sal_uInt16 Count() const { return aBoxes.Count(); } - const SwTableBox& GetBox( sal_uInt16 nPos, sal_uInt16* pWidth = 0 ) const + const SwTableBox& GetBox( std::size_t nPos, sal_uInt16* pWidth = 0 ) const { // hier wird die EndPos der Spalte benoetigt! if( pWidth ) - *pWidth = nPos+1 == aPosArr.size() ? nWidth + *pWidth = (nPos+1 == aPosArr.size()) ? nWidth : aPosArr[ nPos+1 ]; return *aBoxes[ nPos ]; } |