summaryrefslogtreecommitdiff
path: root/extensions
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 /extensions
parente0b2e6e3f767240016133dd2d55e0bfb9192ca39 (diff)
loplugin:loopvartoosmall
Change-Id: I5518e40a30bdad53470cc52b59eff04ab6d873d4
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/bibliography/bibconfig.cxx6
-rw-r--r--extensions/source/bibliography/datman.cxx4
-rw-r--r--extensions/source/bibliography/toolbar.cxx2
-rw-r--r--extensions/source/dbpilots/commonpagesdbp.cxx2
-rw-r--r--extensions/source/dbpilots/groupboxwiz.cxx2
-rw-r--r--extensions/source/plugin/base/manager.cxx2
-rw-r--r--extensions/source/propctrlr/browserlistbox.cxx2
-rw-r--r--extensions/source/propctrlr/formcomponenthandler.cxx2
-rw-r--r--extensions/source/propctrlr/standardcontrol.cxx2
-rw-r--r--extensions/source/scanner/grid.cxx4
-rw-r--r--extensions/source/scanner/sanedlg.cxx2
11 files changed, 15 insertions, 15 deletions
diff --git a/extensions/source/bibliography/bibconfig.cxx b/extensions/source/bibliography/bibconfig.cxx
index 86157c8bf031..649ff8affbe3 100644
--- a/extensions/source/bibliography/bibconfig.cxx
+++ b/extensions/source/bibliography/bibconfig.cxx
@@ -159,7 +159,7 @@ BibConfig::BibConfig()
Sequence<OUString> aAssignmentPropertyNames(aAssignmentNodeNames.getLength() * 2);
OUString* pAssignmentPropertyNames = aAssignmentPropertyNames.getArray();
sal_Int16 nFieldIdx = 0;
- for(sal_Int16 nField = 0; nField < aAssignmentNodeNames.getLength(); nField++)
+ for(sal_Int32 nField = 0; nField < aAssignmentNodeNames.getLength(); nField++)
{
OUString sSubPrefix(sPrefix);
sSubPrefix += "/";
@@ -294,7 +294,7 @@ void BibConfig::ImplCommit()
const Mapping* BibConfig::GetMapping(const BibDBDescriptor& rDesc) const
{
- for(sal_uInt16 i = 0; i < pMappingsArr->size(); i++)
+ for(size_t i = 0; i < pMappingsArr->size(); i++)
{
Mapping& rMapping = (*pMappingsArr)[i];
bool bURLEqual = rDesc.sDataSource.equals(rMapping.sURL);
@@ -306,7 +306,7 @@ const Mapping* BibConfig::GetMapping(const BibDBDescriptor& rDesc) const
void BibConfig::SetMapping(const BibDBDescriptor& rDesc, const Mapping* pSetMapping)
{
- for(sal_uInt16 i = 0; i < pMappingsArr->size(); i++)
+ for(size_t i = 0; i < pMappingsArr->size(); i++)
{
Mapping& rMapping = (*pMappingsArr)[i];
bool bURLEqual = rDesc.sDataSource.equals(rMapping.sURL);
diff --git a/extensions/source/bibliography/datman.cxx b/extensions/source/bibliography/datman.cxx
index 8f5871cd1549..a1fc5b8c76b8 100644
--- a/extensions/source/bibliography/datman.cxx
+++ b/extensions/source/bibliography/datman.cxx
@@ -354,7 +354,7 @@ MappingDialog_Impl::MappingDialog_Impl(vcl::Window* pParent, BibDataManager* pMa
aListBoxes[0]->SetSelectHdl(aLnk);
for(sal_uInt16 i = 1; i < COLUMN_COUNT; i++)
{
- for(sal_uInt16 j = 0; j < aListBoxes[0]->GetEntryCount();j++)
+ for(sal_Int32 j = 0; j < aListBoxes[0]->GetEntryCount();j++)
aListBoxes[i]->InsertEntry(aListBoxes[0]->GetEntry(j));
aListBoxes[i]->SelectEntryPos(0);
aListBoxes[i]->SetSelectHdl(aLnk);
@@ -581,7 +581,7 @@ void BibInterceptorHelper::ReleaseInterceptor()
Sequence< Reference< XDispatch> > aReturn( aDescripts.getLength() );
Reference< XDispatch >* pReturn = aReturn.getArray();
const DispatchDescriptor* pDescripts = aDescripts.getConstArray();
- for ( sal_Int16 i=0; i<aDescripts.getLength(); ++i, ++pReturn, ++pDescripts )
+ for ( sal_Int32 i=0; i<aDescripts.getLength(); ++i, ++pReturn, ++pDescripts )
{
*pReturn = queryDispatch( pDescripts->FeatureURL, pDescripts->FrameName, pDescripts->SearchFlags );
}
diff --git a/extensions/source/bibliography/toolbar.cxx b/extensions/source/bibliography/toolbar.cxx
index d2f252c84b2f..ddedd34ec9da 100644
--- a/extensions/source/bibliography/toolbar.cxx
+++ b/extensions/source/bibliography/toolbar.cxx
@@ -518,7 +518,7 @@ IMPL_LINK_NOARG_TYPED( BibToolBar, MenuHdl, ToolBox*, void)
void BibToolBar::statusChanged(const frame::FeatureStateEvent& rEvent)
throw( uno::RuntimeException )
{
- for(sal_uInt16 i = 0; i < aListenerArr.size(); i++)
+ for(size_t i = 0; i < aListenerArr.size(); i++)
{
BibToolBarListenerRef* pListener = &aListenerArr[i];
(*pListener)->statusChanged(rEvent);
diff --git a/extensions/source/dbpilots/commonpagesdbp.cxx b/extensions/source/dbpilots/commonpagesdbp.cxx
index 822839a6354e..48a27d87348a 100644
--- a/extensions/source/dbpilots/commonpagesdbp.cxx
+++ b/extensions/source/dbpilots/commonpagesdbp.cxx
@@ -137,7 +137,7 @@ namespace dbp
OSL_VERIFY( rContext.xForm->getPropertyValue("CommandType") >>= nCommandType );
// search the entry of the given type with the given name
- for ( sal_uInt16 nLookup = 0; nLookup < m_pTable->GetEntryCount(); ++nLookup )
+ for ( sal_Int32 nLookup = 0; nLookup < m_pTable->GetEntryCount(); ++nLookup )
{
if (sCommand.equals(m_pTable->GetEntry(nLookup)))
{
diff --git a/extensions/source/dbpilots/groupboxwiz.cxx b/extensions/source/dbpilots/groupboxwiz.cxx
index eb8b8e1276f3..e6bc4d9d6339 100644
--- a/extensions/source/dbpilots/groupboxwiz.cxx
+++ b/extensions/source/dbpilots/groupboxwiz.cxx
@@ -251,7 +251,7 @@ namespace dbp
rSettings.aValues.clear();
rSettings.aLabels.reserve(m_pExistingRadios->GetEntryCount());
rSettings.aValues.reserve(m_pExistingRadios->GetEntryCount());
- for (::svt::WizardTypes::WizardState i=0; i<m_pExistingRadios->GetEntryCount(); ++i)
+ for (sal_Int32 i=0; i<m_pExistingRadios->GetEntryCount(); ++i)
{
rSettings.aLabels.push_back(m_pExistingRadios->GetEntry(i));
rSettings.aValues.push_back(OUString::number((i + 1)));
diff --git a/extensions/source/plugin/base/manager.cxx b/extensions/source/plugin/base/manager.cxx
index 84d45719d4c6..c78cb0f928b0 100644
--- a/extensions/source/plugin/base/manager.cxx
+++ b/extensions/source/plugin/base/manager.cxx
@@ -90,7 +90,7 @@ const Sequence< OUString >& PluginManager::getAdditionalSearchPaths()
{
sal_Int32 nPaths = comphelper::string::getTokenCount(aPluginPath, ';');
aPaths.realloc( nPaths );
- for( sal_uInt16 i = 0; i < nPaths; i++ )
+ for( sal_Int32 i = 0; i < nPaths; i++ )
aPaths.getArray()[i] = aPluginPath.getToken(i, ';');
}
}
diff --git a/extensions/source/propctrlr/browserlistbox.cxx b/extensions/source/propctrlr/browserlistbox.cxx
index 2bd9564d2098..d22cec4914c7 100644
--- a/extensions/source/propctrlr/browserlistbox.cxx
+++ b/extensions/source/propctrlr/browserlistbox.cxx
@@ -474,7 +474,7 @@ namespace pcr
m_aVScroll->SetPosSizePixel( aVScrollPos, aVScrollSize );
}
- for ( sal_uInt16 i = 0; i < m_aLines.size(); ++i )
+ for ( size_t i = 0; i < m_aLines.size(); ++i )
m_aOutOfDateLines.insert( i );
// repaint
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx
index 53a9bd4ddbf0..7a8a026e891e 100644
--- a/extensions/source/propctrlr/formcomponenthandler.cxx
+++ b/extensions/source/propctrlr/formcomponenthandler.cxx
@@ -2744,7 +2744,7 @@ namespace pcr
{
const sal_uInt32* pDeletedKeys = pInfoItem->GetDelArray();
- for (sal_uInt16 i=0; i< pInfoItem->GetDelCount(); ++i, ++pDeletedKeys)
+ for (sal_uInt32 i=0; i< pInfoItem->GetDelCount(); ++i, ++pDeletedKeys)
pFormatter->DeleteEntry(*pDeletedKeys);
}
diff --git a/extensions/source/propctrlr/standardcontrol.cxx b/extensions/source/propctrlr/standardcontrol.cxx
index 9cf73d7fd299..ed4d1df0bf0f 100644
--- a/extensions/source/propctrlr/standardcontrol.cxx
+++ b/extensions/source/propctrlr/standardcontrol.cxx
@@ -683,7 +683,7 @@ namespace pcr
if ( pColorList.is() )
{
- for (sal_uInt16 i = 0; i < pColorList->Count(); ++i)
+ for (long i = 0; i < pColorList->Count(); ++i)
{
XColorEntry* pEntry = pColorList->GetColor( i );
getTypedControlWindow()->InsertEntry( pEntry->GetColor(), pEntry->GetName() );
diff --git a/extensions/source/scanner/grid.cxx b/extensions/source/scanner/grid.cxx
index 6fa2dc7b88bc..496542f42fad 100644
--- a/extensions/source/scanner/grid.cxx
+++ b/extensions/source/scanner/grid.cxx
@@ -525,7 +525,7 @@ void GridWindow::drawNew(vcl::RenderContext& rRenderContext)
void GridWindow::drawHandles(vcl::RenderContext& rRenderContext)
{
- for(sal_uInt32 i(0L); i < m_aHandles.size(); i++)
+ for(size_t i(0L); i < m_aHandles.size(); i++)
{
m_aHandles[i].draw(rRenderContext, m_aMarkerBitmap);
}
@@ -678,7 +678,7 @@ void GridWindow::ChangeMode(int nType)
if (m_pNewYValues)
{
- for(sal_uInt32 i(0L); i < m_aHandles.size(); i++)
+ for(size_t i(0); i < m_aHandles.size(); i++)
{
// find nearest xvalue
double x, y;
diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx
index 0aee63fdc57d..57e80bbc829d 100644
--- a/extensions/source/scanner/sanedlg.cxx
+++ b/extensions/source/scanner/sanedlg.cxx
@@ -426,7 +426,7 @@ void SaneDlg::InitFields()
// workaround: offer at least some more standard dpi resolution between
// min and max value
int bGot300 = 0;
- for ( int nRes = (long) pDouble[0] * 2; nRes < (long) pDouble[1]; nRes = nRes * 2 )
+ for ( long nRes = (long) pDouble[0] * 2; nRes < (long) pDouble[1]; nRes = nRes * 2 )
{
if ( !bGot300 && nRes > 300 ) {
nRes = 300; bGot300 = 1;