diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-07-17 13:32:06 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-07-17 15:33:39 +0200 |
commit | 49f7814515c2dca4ef39e518906f8c802d6c888f (patch) | |
tree | c975f4df40132c9fbb1f021304a49cd16b3200bc | |
parent | 0d3b54b6d874eea33063fabcfe40538dd11aff64 (diff) |
SwGlobalTree::InsertRegion: -Werror=sign-compare
Change-Id: Ib00a12ba38334a1233c2894606c097bfa2891813
-rw-r--r-- | sw/source/ui/utlui/glbltree.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/ui/utlui/glbltree.cxx b/sw/source/ui/utlui/glbltree.cxx index 25df56e287fb..c74567144d61 100644 --- a/sw/source/ui/utlui/glbltree.cxx +++ b/sw/source/ui/utlui/glbltree.cxx @@ -1284,10 +1284,11 @@ void SwGlobalTree::InsertRegion( const SwGlblDocContent* _pContent, const Sequen rSh.StartAction(); // after insertion of the first new content the 'pCont' parameter becomes invalid // find the index of the 'anchor' content to always use a current anchor content - sal_uInt16 nAnchorContent = pSwGlblDocContents->size() - 1; + size_t nAnchorContent = pSwGlblDocContents->size() - 1; if ( !bMove ) { - for( sal_uInt16 nContent = 0; nContent < pSwGlblDocContents->size(); ++nContent ) + for (size_t nContent = 0; nContent < pSwGlblDocContents->size(); + ++nContent) { if( *_pContent == *(*pSwGlblDocContents)[ nContent ] ) { @@ -1304,7 +1305,7 @@ void SwGlobalTree::InsertRegion( const SwGlblDocContent* _pContent, const Sequen SwGlblDocContent* pAnchorContent = 0; OSL_ENSURE(aTempContents.size() > (nAnchorContent + nFile), "invalid anchor content -> last insertion failed"); if ( aTempContents.size() > (nAnchorContent + nFile) ) - pAnchorContent = aTempContents[nAnchorContent + (sal_uInt16)nFile]; + pAnchorContent = aTempContents[nAnchorContent + nFile]; else pAnchorContent = aTempContents.back(); String sFileName(pFileNames[nFile]); |