diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-03-07 19:50:17 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-03-07 19:50:51 +0100 |
commit | e46c717b0b8cd9be060b31debb54ba82ac7e5b9d (patch) | |
tree | 3ee452dc303809fa8e1b1ea91c8a090e6d3ebcdf /editeng/source/outliner/outliner.cxx | |
parent | 43b13117c0adf303cd3578bf268b4ac8feb04f6b (diff) |
loplugin:loopvartoosmall
Change-Id: I7c962d91f5c54fa188594174c14ab1d0b1bc6963
Diffstat (limited to 'editeng/source/outliner/outliner.cxx')
-rw-r--r-- | editeng/source/outliner/outliner.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx index 41564f4108de..236e265e7d2d 100644 --- a/editeng/source/outliner/outliner.cxx +++ b/editeng/source/outliner/outliner.cxx @@ -448,7 +448,7 @@ void Outliner::SetText( const OUString& rText, Paragraph* pPara ) ( ImplGetOutlinerMode() == OutlinerMode::OutlineView ) ) { // Extract Tabs - sal_uInt16 nTabs = 0; + sal_Int32 nTabs = 0; while ( ( nTabs < aStr.getLength() ) && ( aStr[nTabs] == '\t' ) ) nTabs++; if ( nTabs ) @@ -457,7 +457,7 @@ void Outliner::SetText( const OUString& rText, Paragraph* pPara ) // Keep depth? (see Outliner::Insert) if( !(pPara->nFlags & ParaFlag::HOLDDEPTH) ) { - nCurDepth = nTabs-1; + nCurDepth = nTabs-1; //TODO: sal_Int32 -> sal_Int16! ImplCheckDepth( nCurDepth ); pPara->SetDepth( nCurDepth ); pPara->nFlags &= (~ParaFlag::HOLDDEPTH); |