summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-28 16:48:15 +0200
committerNoel Grandin <noel@peralex.com>2015-05-29 08:48:41 +0200
commit49ea2258d482950ad3af16f9c8ac4fef7f192fc0 (patch)
tree4910b89f264f47c378fa7540705ca84f50d91919 /cui
parente0b2e6e3f767240016133dd2d55e0bfb9192ca39 (diff)
loplugin:loopvartoosmall
Change-Id: I5518e40a30bdad53470cc52b59eff04ab6d873d4
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/cfg.cxx16
-rw-r--r--cui/source/dialogs/hldocntp.cxx2
-rw-r--r--cui/source/dialogs/iconcdlg.cxx2
-rw-r--r--cui/source/dialogs/multipat.cxx4
-rw-r--r--cui/source/dialogs/showcols.cxx4
-rw-r--r--cui/source/dialogs/srchxtra.cxx2
-rw-r--r--cui/source/inc/treeopt.hxx16
-rw-r--r--cui/source/options/dbregister.cxx2
-rw-r--r--cui/source/options/optgdlg.cxx2
-rw-r--r--cui/source/options/optopencl.cxx6
-rw-r--r--cui/source/options/optpath.cxx4
-rw-r--r--cui/source/options/optsave.cxx2
-rw-r--r--cui/source/options/treeopt.cxx8
-rw-r--r--cui/source/tabpages/autocdlg.cxx16
-rw-r--r--cui/source/tabpages/numpages.cxx2
15 files changed, 44 insertions, 44 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index 36f39974812b..b5ebf1a217e4 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -1861,7 +1861,7 @@ bool SvxConfigPage::FillItemSet( SfxItemSet* )
{
bool result = false;
- for ( sal_uInt16 i = 0 ; i < m_pSaveInListBox->GetEntryCount(); ++i )
+ for ( sal_Int32 i = 0 ; i < m_pSaveInListBox->GetEntryCount(); ++i )
{
SaveInData* pData =
static_cast<SaveInData*>(m_pSaveInListBox->GetEntryData( i ));
@@ -2264,7 +2264,7 @@ void SvxMenuConfigPage::Init()
void SvxMenuConfigPage::dispose()
{
- for ( sal_uInt16 i = 0 ; i < m_pSaveInListBox->GetEntryCount(); ++i )
+ for ( sal_Int32 i = 0 ; i < m_pSaveInListBox->GetEntryCount(); ++i )
{
MenuSaveInData* pData =
static_cast<MenuSaveInData*>(m_pSaveInListBox->GetEntryData( i ));
@@ -2963,7 +2963,7 @@ SvxToolbarConfigPage::~SvxToolbarConfigPage()
void SvxToolbarConfigPage::dispose()
{
- for ( sal_uInt16 i = 0 ; i < m_pSaveInListBox->GetEntryCount(); ++i )
+ for ( sal_Int32 i = 0 ; i < m_pSaveInListBox->GetEntryCount(); ++i )
{
ToolbarSaveInData* pData =
static_cast<ToolbarSaveInData*>(m_pSaveInListBox->GetEntryData( i ));
@@ -3201,7 +3201,7 @@ IMPL_LINK_TYPED( SvxToolbarConfigPage, EntrySelectHdl, MenuButton *, pButton, vo
sal_uInt16 nSelectionPos = 0;
// find position of entry within the list
- for ( sal_uInt16 i = 0; i < m_pContentsListBox->GetEntryCount(); ++i )
+ for ( sal_uLong i = 0; i < m_pContentsListBox->GetEntryCount(); ++i )
{
if ( m_pContentsListBox->GetEntry( 0, i ) == pActEntry )
{
@@ -3299,7 +3299,7 @@ IMPL_LINK_TYPED( SvxToolbarConfigPage, EntrySelectHdl, MenuButton *, pButton, vo
sal_uInt16 nSelectionPos = 0;
// find position of entry within the list
- for ( sal_uInt16 i = 0; i < m_pContentsListBox->GetEntryCount(); ++i )
+ for ( sal_uLong i = 0; i < m_pContentsListBox->GetEntryCount(); ++i )
{
if ( m_pContentsListBox->GetEntry( 0, i ) == pActEntry )
{
@@ -3377,7 +3377,7 @@ IMPL_LINK_TYPED( SvxToolbarConfigPage, EntrySelectHdl, MenuButton *, pButton, vo
sal_uInt16 nSelectionPos = 0;
// find position of entry within the list
- for ( sal_uInt16 i = 0; i < m_pContentsListBox->GetEntryCount(); ++i )
+ for ( sal_uLong i = 0; i < m_pContentsListBox->GetEntryCount(); ++i )
{
if ( m_pContentsListBox->GetEntry( 0, i ) == pActEntry )
{
@@ -3447,7 +3447,7 @@ void SvxToolbarConfigPage::Init()
sal_uInt16 nPos = 0;
if ( !m_aURLToSelect.isEmpty() )
{
- for ( sal_uInt16 i = 0 ; i < m_pTopLevelListBox->GetEntryCount(); ++i )
+ for ( sal_Int32 i = 0 ; i < m_pTopLevelListBox->GetEntryCount(); ++i )
{
SvxConfigEntry* pData =
static_cast<SvxConfigEntry*>(m_pTopLevelListBox->GetEntryData( i ));
@@ -4437,7 +4437,7 @@ IMPL_LINK( SvxToolbarConfigPage, NewToolbarHdl, Button *, pButton )
VclPtrInstance< SvxNewToolbarDialog > pNameDialog( nullptr, aNewName );
sal_uInt16 nInsertPos;
- for ( sal_uInt16 i = 0 ; i < m_pSaveInListBox->GetEntryCount(); ++i )
+ for ( sal_Int32 i = 0 ; i < m_pSaveInListBox->GetEntryCount(); ++i )
{
SaveInData* pData =
static_cast<SaveInData*>(m_pSaveInListBox->GetEntryData( i ));
diff --git a/cui/source/dialogs/hldocntp.cxx b/cui/source/dialogs/hldocntp.cxx
index b0657eef30cf..798731af25d1 100644
--- a/cui/source/dialogs/hldocntp.cxx
+++ b/cui/source/dialogs/hldocntp.cxx
@@ -136,7 +136,7 @@ void SvxHyperlinkNewDocTp::dispose()
{
if (m_pLbDocTypes)
{
- for ( sal_uInt16 n=0; n<m_pLbDocTypes->GetEntryCount(); n++ )
+ for ( sal_Int32 n=0; n<m_pLbDocTypes->GetEntryCount(); n++ )
delete static_cast<DocumentTypeData*>(m_pLbDocTypes->GetEntryData ( n ));
m_pLbDocTypes = NULL;
}
diff --git a/cui/source/dialogs/iconcdlg.cxx b/cui/source/dialogs/iconcdlg.cxx
index 686734d6e8a2..ec76ff1831ac 100644
--- a/cui/source/dialogs/iconcdlg.cxx
+++ b/cui/source/dialogs/iconcdlg.cxx
@@ -841,7 +841,7 @@ short IconChoiceDialog::Ok()
void IconChoiceDialog::FocusOnIcon( sal_uInt16 nId )
{
// set focus to icon for the current visible page
- for ( sal_uInt16 i=0; i<m_pIconCtrl->GetEntryCount(); i++)
+ for ( sal_uLong i=0; i<m_pIconCtrl->GetEntryCount(); i++)
{
SvxIconChoiceCtrlEntry* pEntry = m_pIconCtrl->GetEntry ( i );
sal_uInt16* pUserData = static_cast<sal_uInt16*>(pEntry->GetUserData());
diff --git a/cui/source/dialogs/multipat.cxx b/cui/source/dialogs/multipat.cxx
index 8cdc64439efa..75c8b8896030 100644
--- a/cui/source/dialogs/multipat.cxx
+++ b/cui/source/dialogs/multipat.cxx
@@ -270,7 +270,7 @@ OUString SvxMultiPathDialog::GetPath() const
sal_Unicode cDelim = SVT_SEARCHPATH_DELIMITER;
OUString sWritable;
- for ( sal_uInt16 i = 0; i < m_pRadioLB->GetEntryCount(); ++i )
+ for ( sal_uLong i = 0; i < m_pRadioLB->GetEntryCount(); ++i )
{
SvTreeListEntry* pEntry = m_pRadioLB->GetEntry(i);
if ( m_pRadioLB->GetCheckButtonState( pEntry ) == SV_BUTTON_CHECKED )
@@ -294,7 +294,7 @@ OUString SvxPathSelectDialog::GetPath() const
OUString sNewPath;
sal_Unicode cDelim = SVT_SEARCHPATH_DELIMITER;
- for ( sal_uInt16 i = 0; i < m_pPathLB->GetEntryCount(); ++i )
+ for ( sal_Int32 i = 0; i < m_pPathLB->GetEntryCount(); ++i )
{
if ( !sNewPath.isEmpty() )
sNewPath += OUString(cDelim);
diff --git a/cui/source/dialogs/showcols.cxx b/cui/source/dialogs/showcols.cxx
index 4c86ac4da191..79bdda9387bd 100644
--- a/cui/source/dialogs/showcols.cxx
+++ b/cui/source/dialogs/showcols.cxx
@@ -57,7 +57,7 @@ IMPL_LINK_NOARG(FmShowColsDialog, OnClickedOk)
if (m_xColumns.is())
{
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > xCol;
- for (sal_uInt16 i=0; i < m_pList->GetSelectEntryCount(); ++i)
+ for (sal_Int32 i=0; i < m_pList->GetSelectEntryCount(); ++i)
{
m_xColumns->getByIndex(sal::static_int_cast<sal_Int32>(reinterpret_cast<sal_uIntPtr>(m_pList->GetEntryData(m_pList->GetSelectEntryPos(i))))) >>= xCol;
if (xCol.is())
@@ -90,7 +90,7 @@ void FmShowColsDialog::SetColumns(const ::com::sun::star::uno::Reference< ::com:
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> xCurCol;
OUString sCurName;
- for (sal_uInt16 i=0; i<xCols->getCount(); ++i)
+ for (sal_Int32 i=0; i<xCols->getCount(); ++i)
{
sCurName.clear();
xCurCol.set(xCols->getByIndex(i), css::uno::UNO_QUERY);
diff --git a/cui/source/dialogs/srchxtra.cxx b/cui/source/dialogs/srchxtra.cxx
index 44976012dad2..5bd9284cd776 100644
--- a/cui/source/dialogs/srchxtra.cxx
+++ b/cui/source/dialogs/srchxtra.cxx
@@ -196,7 +196,7 @@ IMPL_LINK_NOARG(SvxSearchAttributeDialog, OKHdl)
SearchAttrItem aInvalidItem;
aInvalidItem.pItem = reinterpret_cast<SfxPoolItem*>(-1);
- for ( sal_uInt16 i = 0; i < m_pAttrLB->GetEntryCount(); ++i )
+ for ( sal_uLong i = 0; i < m_pAttrLB->GetEntryCount(); ++i )
{
sal_uInt16 nSlot = (sal_uInt16)reinterpret_cast<sal_uLong>(m_pAttrLB->GetEntryData(i));
bool bChecked = m_pAttrLB->IsChecked(i);
diff --git a/cui/source/inc/treeopt.hxx b/cui/source/inc/treeopt.hxx
index 86f7af92fbec..63ffc2c71b16 100644
--- a/cui/source/inc/treeopt.hxx
+++ b/cui/source/inc/treeopt.hxx
@@ -87,11 +87,11 @@ typedef ::std::vector< VectorOfLeaves > VectorOfGroupedLeaves;
struct OptionsNode
{
- OUString m_sId;
- OUString m_sLabel;
- OUString m_sPageURL;
+ OUString m_sId;
+ OUString m_sLabel;
+ OUString m_sPageURL;
bool m_bAllModules;
- OUString m_sGroupId;
+ OUString m_sGroupId;
sal_Int32 m_nGroupIndex;
VectorOfLeaves m_aLeaves;
VectorOfGroupedLeaves m_aGroupedLeaves;
@@ -111,7 +111,7 @@ struct OptionsNode
~OptionsNode()
{
- for ( sal_uInt32 i = 0; i < m_aLeaves.size(); ++i )
+ for ( size_t i = 0; i < m_aLeaves.size(); ++i )
delete m_aLeaves[i];
m_aLeaves.clear();
m_aGroupedLeaves.clear();
@@ -122,9 +122,9 @@ typedef ::std::vector< OptionsNode* > VectorOfNodes;
struct LastPageSaver
{
- sal_uInt16 m_nLastPageId;
- OUString m_sLastPageURL_Tools;
- OUString m_sLastPageURL_ExtMgr;
+ sal_uInt16 m_nLastPageId;
+ OUString m_sLastPageURL_Tools;
+ OUString m_sLastPageURL_ExtMgr;
LastPageSaver() : m_nLastPageId( USHRT_MAX ) {}
};
diff --git a/cui/source/options/dbregister.cxx b/cui/source/options/dbregister.cxx
index ba17c70246ef..3bf5f84bd16d 100644
--- a/cui/source/options/dbregister.cxx
+++ b/cui/source/options/dbregister.cxx
@@ -168,7 +168,7 @@ DbRegistrationOptionsPage::~DbRegistrationOptionsPage()
void DbRegistrationOptionsPage::dispose()
{
- for ( sal_uInt16 i = 0; i < pPathBox->GetEntryCount(); ++i )
+ for ( sal_uLong i = 0; i < pPathBox->GetEntryCount(); ++i )
delete static_cast< DatabaseRegistration* >( pPathBox->GetEntry(i)->GetUserData() );
pPathBox.disposeAndClear();
m_pPathCtrl.clear();
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index b82189f610b0..11b37a77c1ff 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -1171,7 +1171,7 @@ OfaLanguagesTabPage::OfaLanguagesTabPage(vcl::Window* pParent, const SfxItemSet&
if (!m_sUserLocaleValue.isEmpty())
{
sal_Int32 d = 0;
- for (sal_uInt16 i=0; i < m_pUserInterfaceLB->GetEntryCount(); i++)
+ for (sal_Int32 i=0; i < m_pUserInterfaceLB->GetEntryCount(); i++)
{
d = (sal_Int32)reinterpret_cast<sal_IntPtr>(m_pUserInterfaceLB->GetEntryData(i));
if ( d > 0 && seqInstalledLanguages.getLength() > d-1 && seqInstalledLanguages[d-1].equals(m_sUserLocaleValue))
diff --git a/cui/source/options/optopencl.cxx b/cui/source/options/optopencl.cxx
index 465bb4acf437..4c97609dcbc4 100644
--- a/cui/source/options/optopencl.cxx
+++ b/cui/source/options/optopencl.cxx
@@ -109,9 +109,9 @@ SvxOpenCLTabPage::~SvxOpenCLTabPage()
void SvxOpenCLTabPage::dispose()
{
- for ( sal_uInt16 i = 0; i < mpBlackList->GetEntryCount(); ++i )
+ for ( sal_uLong i = 0; i < mpBlackList->GetEntryCount(); ++i )
delete static_cast<OpenCLConfig::ImplMatcher*>(mpBlackList->GetEntry(i)->GetUserData());
- for ( sal_uInt16 i = 0; i < mpWhiteList->GetEntryCount(); ++i )
+ for ( sal_uLong i = 0; i < mpWhiteList->GetEntryCount(); ++i )
delete static_cast<OpenCLConfig::ImplMatcher*>(mpWhiteList->GetEntry(i)->GetUserData());
mpBlackList.disposeAndClear();
mpWhiteList.disposeAndClear();
@@ -176,7 +176,7 @@ void fillListBox(SvSimpleTable* pListBox, const OpenCLConfig::ImplMatcherSet& rS
{
pListBox->SetUpdateMode(false);
// kill added UserData to treeitem
- for ( sal_uInt16 i = 0; i < pListBox->GetEntryCount(); ++i )
+ for ( sal_uLong i = 0; i < pListBox->GetEntryCount(); ++i )
delete static_cast<OpenCLConfig::ImplMatcher*>(pListBox->GetEntry(i)->GetUserData());
pListBox->Clear();
diff --git a/cui/source/options/optpath.cxx b/cui/source/options/optpath.cxx
index 0bab1a92168a..5e13382ed237 100644
--- a/cui/source/options/optpath.cxx
+++ b/cui/source/options/optpath.cxx
@@ -243,7 +243,7 @@ void SvxPathTabPage::dispose()
{
if ( pPathBox )
{
- for ( sal_uInt16 i = 0; i < pPathBox->GetEntryCount(); ++i )
+ for ( sal_uLong i = 0; i < pPathBox->GetEntryCount(); ++i )
delete static_cast<PathUserData_Impl*>(pPathBox->GetEntry(i)->GetUserData());
pPathBox.disposeAndClear();
}
@@ -263,7 +263,7 @@ VclPtr<SfxTabPage> SvxPathTabPage::Create( vcl::Window* pParent,
bool SvxPathTabPage::FillItemSet( SfxItemSet* )
{
- for ( sal_uInt16 i = 0; i < pPathBox->GetEntryCount(); ++i )
+ for ( sal_uLong i = 0; i < pPathBox->GetEntryCount(); ++i )
{
PathUserData_Impl* pPathImpl = static_cast<PathUserData_Impl*>(pPathBox->GetEntry(i)->GetUserData());
sal_uInt16 nRealId = pPathImpl->nRealId;
diff --git a/cui/source/options/optsave.cxx b/cui/source/options/optsave.cxx
index f6c5741dadb0..8c1c67a67421 100644
--- a/cui/source/options/optsave.cxx
+++ b/cui/source/options/optsave.cxx
@@ -419,7 +419,7 @@ void SfxSaveTabPage::Reset( const SfxItemSet* )
Reference< XContainerQuery > xQuery(pImpl->xFact, UNO_QUERY);
if(xQuery.is())
{
- for(sal_uInt16 n = 0; n < aDocTypeLB->GetEntryCount(); n++)
+ for(sal_Int32 n = 0; n < aDocTypeLB->GetEntryCount(); n++)
{
sal_IntPtr nData = reinterpret_cast<sal_IntPtr>(aDocTypeLB->GetEntryData(n));
OUString sCommand;
diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx
index 6146c5db89b8..a3d1b90e06ee 100644
--- a/cui/source/options/treeopt.cxx
+++ b/cui/source/options/treeopt.cxx
@@ -1796,7 +1796,7 @@ bool isNodeActive( OptionsNode* pNode, Module* pModule )
// search node in active module
if ( pModule->m_bActive )
{
- for ( sal_uInt32 j = 0; j < pModule->m_aNodeList.size(); ++j )
+ for ( size_t j = 0; j < pModule->m_aNodeList.size(); ++j )
if ( pModule->m_aNodeList[j]->m_sId == pNode->m_sId )
return true;
}
@@ -1990,7 +1990,7 @@ VectorOfNodes OfaTreeOptionsDialog::LoadNodes(
bool bAlreadyOpened = false;
if ( pNode->m_aGroupedLeaves.size() > 0 )
{
- for ( sal_uInt32 k = 0;
+ for ( size_t k = 0;
k < pNode->m_aGroupedLeaves.size(); ++k )
{
if ( pNode->m_aGroupedLeaves[k].size() > 0 &&
@@ -2106,7 +2106,7 @@ static void lcl_insertLeaf(
void OfaTreeOptionsDialog::InsertNodes( const VectorOfNodes& rNodeList )
{
- for ( sal_uInt32 i = 0; i < rNodeList.size(); ++i )
+ for ( size_t i = 0; i < rNodeList.size(); ++i )
{
OptionsNode* pNode = rNodeList[i];
@@ -2115,7 +2115,7 @@ void OfaTreeOptionsDialog::InsertNodes( const VectorOfNodes& rNodeList )
sal_uInt32 j = 0;
for ( ; j < pNode->m_aGroupedLeaves.size(); ++j )
{
- for ( sal_uInt32 k = 0; k < pNode->m_aGroupedLeaves[j].size(); ++k )
+ for ( size_t k = 0; k < pNode->m_aGroupedLeaves[j].size(); ++k )
{
OptionsLeaf* pLeaf = pNode->m_aGroupedLeaves[j][k];
lcl_insertLeaf( this, pNode, pLeaf, *pTreeLB );
diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx
index a4da64ee0456..ce474e3dd7bb 100644
--- a/cui/source/tabpages/autocdlg.cxx
+++ b/cui/source/tabpages/autocdlg.cxx
@@ -982,14 +982,14 @@ bool OfaAutocorrReplacePage::FillItemSet( SfxItemSet* )
std::vector<SvxAutocorrWord> aDeleteWords;
std::vector<SvxAutocorrWord> aNewWords;
- for (sal_uInt32 i = 0; i < rStringChangeList.aDeletedEntries.size(); i++)
+ for (size_t i = 0; i < rStringChangeList.aDeletedEntries.size(); i++)
{
DoubleString& deleteEntry = rStringChangeList.aDeletedEntries[i];
SvxAutocorrWord aDeleteWord( deleteEntry.sShort, deleteEntry.sLong );
aDeleteWords.push_back( aDeleteWord );
}
- for (sal_uInt32 i = 0; i < rStringChangeList.aNewEntries.size(); i++)
+ for (size_t i = 0; i < rStringChangeList.aNewEntries.size(); i++)
{
DoubleString& newEntry = rStringChangeList.aNewEntries[i];
@@ -1055,7 +1055,7 @@ void OfaAutocorrReplacePage::RefillReplaceBox(bool bFromReset,
if( aDoubleStringTable.find(eLang) != aDoubleStringTable.end() )
{
DoubleStringArray& rArray = aDoubleStringTable[eNewLanguage];
- for( sal_uInt32 i = 0; i < rArray.size(); i++ )
+ for( size_t i = 0; i < rArray.size(); i++ )
{
DoubleString& rDouble = rArray[i];
bool bTextOnly = 0 == rDouble.pUserData;
@@ -1183,7 +1183,7 @@ IMPL_LINK(OfaAutocorrReplacePage, SelectHdl, SvTabListBox*, pBox)
void OfaAutocorrReplacePage::NewEntry(const OUString& sShort, const OUString& sLong, bool bKeepSourceFormatting)
{
DoubleStringArray& rNewArray = aChangesTable[eLang].aNewEntries;
- for (sal_uInt32 i = 0; i < rNewArray.size(); i++)
+ for (size_t i = 0; i < rNewArray.size(); i++)
{
if (rNewArray[i].sShort == sShort)
{
@@ -1193,7 +1193,7 @@ void OfaAutocorrReplacePage::NewEntry(const OUString& sShort, const OUString& sL
}
DoubleStringArray& rDeletedArray = aChangesTable[eLang].aDeletedEntries;
- for (sal_uInt32 i = 0; i < rDeletedArray.size(); i++)
+ for (size_t i = 0; i < rDeletedArray.size(); i++)
{
if (rDeletedArray[i].sShort == sShort)
{
@@ -1213,7 +1213,7 @@ void OfaAutocorrReplacePage::NewEntry(const OUString& sShort, const OUString& sL
void OfaAutocorrReplacePage::DeleteEntry(const OUString& sShort, const OUString& sLong)
{
DoubleStringArray& rNewArray = aChangesTable[eLang].aNewEntries;
- for (sal_uInt32 i = 0; i < rNewArray.size(); i++)
+ for (size_t i = 0; i < rNewArray.size(); i++)
{
if (rNewArray[i].sShort == sShort)
{
@@ -1223,7 +1223,7 @@ void OfaAutocorrReplacePage::DeleteEntry(const OUString& sShort, const OUString&
}
DoubleStringArray& rDeletedArray = aChangesTable[eLang].aDeletedEntries;
- for (sal_uInt32 i = 0; i < rDeletedArray.size(); i++)
+ for (size_t i = 0; i < rDeletedArray.size(); i++)
{
if (rDeletedArray[i].sShort == sShort)
{
@@ -1324,7 +1324,7 @@ IMPL_LINK(OfaAutocorrReplacePage, ModifyHdl, Edit*, pEdt)
bool bFound = false;
bool bTmpSelEntry=false;
- for(sal_uInt32 i = 0; i < m_pReplaceTLB->GetEntryCount(); i++)
+ for(sal_uLong i = 0; i < m_pReplaceTLB->GetEntryCount(); i++)
{
SvTreeListEntry* pEntry = m_pReplaceTLB->GetEntry( i );
OUString aTestStr = SvTabListBox::GetEntryText(pEntry, 0);
diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx
index 4d721afaffa0..57efff58d25a 100644
--- a/cui/source/tabpages/numpages.cxx
+++ b/cui/source/tabpages/numpages.cxx
@@ -2670,7 +2670,7 @@ void SvxNumberingPreview::Paint(vcl::RenderContext& rRenderContext, const Rectan
if (aBlackColor == aBackColor)
aBlackColor.Invert();
- for (sal_uInt8 nLevel = 0; nLevel < pActNum->GetLevelCount(); ++nLevel, nYStart = nYStart + nYStep)
+ for (sal_uInt16 nLevel = 0; nLevel < pActNum->GetLevelCount(); ++nLevel, nYStart = nYStart + nYStep)
{
const SvxNumberFormat &rFmt = pActNum->GetLevel(nLevel);
aNum.GetLevelVal()[ nLevel ] = rFmt.GetStart();