diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-05-31 20:41:44 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-05-31 23:35:54 +0200 |
commit | 0b8ae8aa7867e63f12517e4a575a700bd07f6d7d (patch) | |
tree | 6fbeaf8e8d6cdb2e5421135c37b2b5d0d5203073 /sw/source/filter/html/htmlctxt.cxx | |
parent | 1b554d3ada47063496b8cf4a28239da26a6537ae (diff) |
Use size_t, auto and range-based for loops
Change-Id: I7f3672928b3d1ee937c7c6c2684b1396425b9fe6
Diffstat (limited to 'sw/source/filter/html/htmlctxt.cxx')
-rw-r--r-- | sw/source/filter/html/htmlctxt.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sw/source/filter/html/htmlctxt.cxx b/sw/source/filter/html/htmlctxt.cxx index 8772b6827175..0184637824a9 100644 --- a/sw/source/filter/html/htmlctxt.cxx +++ b/sw/source/filter/html/htmlctxt.cxx @@ -47,10 +47,10 @@ class _HTMLAttrContext_SaveDoc // wenn Attributierung nicht // beibehalten werden soll. - sal_uInt16 nContextStMin; // In Umgebung gueltige Stack- + size_t nContextStMin; // In Umgebung gueltige Stack- // Untergrenze, wenn der Stack // geschuetzt werden soll. - sal_uInt16 nContextStAttrMin; // In Umgebung gueltige Stack- + size_t nContextStAttrMin; // In Umgebung gueltige Stack- // Untergrenze, wenn die Attribute // nicht beibehalten werden sollen. @@ -63,7 +63,7 @@ public: _HTMLAttrContext_SaveDoc() : pPos( 0 ), pAttrTab( 0 ), - nContextStMin( USHRT_MAX ), nContextStAttrMin( USHRT_MAX ), + nContextStMin( SIZE_MAX ), nContextStAttrMin( SIZE_MAX ), bStripTrailingPara( false ), bKeepNumRules( false ), bFixHeaderDist( false ), bFixFooterDist( false ) {} @@ -80,11 +80,11 @@ public: _HTMLAttrTable *GetAttrTab( bool bCreate= false ); - void SetContextStMin( sal_uInt16 nMin ) { nContextStMin = nMin; } - sal_uInt16 GetContextStMin() const { return nContextStMin; } + void SetContextStMin( size_t nMin ) { nContextStMin = nMin; } + size_t GetContextStMin() const { return nContextStMin; } - void SetContextStAttrMin( sal_uInt16 nMin ) { nContextStAttrMin = nMin; } - sal_uInt16 GetContextStAttrMin() const { return nContextStAttrMin; } + void SetContextStAttrMin( size_t nMin ) { nContextStAttrMin = nMin; } + size_t GetContextStAttrMin() const { return nContextStAttrMin; } void SetStripTrailingPara( bool bSet ) { bStripTrailingPara = bSet; } bool GetStripTrailingPara() const { return bStripTrailingPara; } @@ -309,10 +309,10 @@ void SwHTMLParser::RestoreDocContext( _HTMLAttrContext *pCntxt ) SetAttr(); } - if( USHRT_MAX != pSave->GetContextStMin() ) + if( SIZE_MAX != pSave->GetContextStMin() ) { nContextStMin = pSave->GetContextStMin(); - if( USHRT_MAX != pSave->GetContextStAttrMin() ) + if( SIZE_MAX != pSave->GetContextStAttrMin() ) nContextStAttrMin = pSave->GetContextStAttrMin(); } |