summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-06-28 19:07:20 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-07-22 23:50:37 +0200
commita3a4f089b06e997e4503db497e1313241d238c5c (patch)
tree9d872ad8c91990b235d791859b9b373caff9b013
parent925382f94f79da7c0b0b8ead151b14dcd66bea4e (diff)
sal_uInt16 to size_t, constify
Change-Id: I4a331bfafc6b6468cf7147f8c09630735690f211
-rw-r--r--sw/source/uibase/utlui/glbltree.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/utlui/glbltree.cxx b/sw/source/uibase/utlui/glbltree.cxx
index c603cc985602..a61f9d644be2 100644
--- a/sw/source/uibase/utlui/glbltree.cxx
+++ b/sw/source/uibase/utlui/glbltree.cxx
@@ -225,7 +225,7 @@ sal_Int8 SwGlobalTree::ExecuteDrop( const ExecuteDropEvent& rEvt )
// Get data
FileList aFileList;
aData.GetFileList( FORMAT_FILE_LIST, aFileList );
- for ( sal_uInt16 n = (sal_uInt16)aFileList.Count(); n--; )
+ for ( size_t n = aFileList.Count(); n--; )
{
sFileName = aFileList.GetFile(n);
InsertRegion(pCnt, &sFileName);
@@ -327,7 +327,7 @@ PopupMenu* SwGlobalTree::CreateContextMenu()
if(pActiveShell &&
!pActiveShell->GetView().GetDocShell()->IsReadOnly())
{
- sal_uInt16 nEnableFlags = GetEnableFlags();
+ const sal_uInt16 nEnableFlags = GetEnableFlags();
pPop = new PopupMenu;
PopupMenu* pSubPop1 = new PopupMenu;
PopupMenu* pSubPop2 = new PopupMenu;
@@ -382,7 +382,7 @@ PopupMenu* SwGlobalTree::CreateContextMenu()
void SwGlobalTree::TbxMenuHdl(sal_uInt16 nTbxId, ToolBox* pBox)
{
- sal_uInt16 nEnableFlags = GetEnableFlags();
+ const sal_uInt16 nEnableFlags = GetEnableFlags();
if(FN_GLOBAL_OPEN == nTbxId)
{
boost::scoped_ptr<PopupMenu> pMenu(new PopupMenu);
@@ -1215,7 +1215,7 @@ void SwGlobalTree::InitEntry(SvTreeListEntry* pEntry,
const OUString& rStr ,const Image& rImg1,const Image& rImg2,
SvLBoxButtonKind eButtonKind)
{
- sal_uInt16 nColToHilite = 1; //0==Bitmap;1=="Column1";2=="Column2"
+ const size_t nColToHilite = 1; //0==Bitmap;1=="Column1";2=="Column2"
SvTreeListBox::InitEntry( pEntry, rStr, rImg1, rImg2, eButtonKind );
SvLBoxString* pCol = (SvLBoxString*)pEntry->GetItem( nColToHilite );
SwLBoxString* pStr = new SwLBoxString( pEntry, 0, pCol->GetText() );