sal_uInt16 to size_t

Change-Id: I46d85e82376a3135408ab77ad31b76a5edbe9ce7
This commit is contained in:
Matteo Casalin
2014-05-11 20:13:19 +02:00
parent 42f2f47330
commit f4166f967b
7 changed files with 12 additions and 12 deletions

View File

@@ -57,7 +57,7 @@ public:
{
return m_Listeners.size();
}
SfxListener* GetListener( sal_uInt16 nNo ) const
SfxListener* GetListener( size_t nNo ) const
{
return m_Listeners[nNo];
}

View File

@@ -68,7 +68,7 @@ class SVX_DLLPUBLIC SdrViewIter
const SdrObject* mpObject;
SdrView* mpAktView;
sal_uInt32 mnListenerNum;
size_t mnListenerNum;
sal_uInt32 mnPageViewNum;
sal_uInt32 mnOutDevNum;

View File

@@ -1443,10 +1443,10 @@ SdStyleSheetVector SdStyleSheetPool::CreateChildList( SdStyleSheet* pSheet )
{
SdStyleSheetVector aResult;
sal_uInt16 nListenerCount = pSheet->GetListenerCount();
const size_t nListenerCount = pSheet->GetListenerCount();
if (nListenerCount > 0)
{
for (sal_uInt16 n = 0; n < nListenerCount; n++)
for (size_t n = 0; n < nListenerCount; ++n)
{
SdStyleSheet* pChild = dynamic_cast< SdStyleSheet* >( pSheet->GetListener(n) );
if(pChild && pChild->GetParent() == pSheet->GetName())

View File

@@ -329,10 +329,10 @@ bool SdStyleSheet::IsUsed() const
{
bool bResult = false;
sal_uInt16 nListenerCount = GetListenerCount();
const size_t nListenerCount = GetListenerCount();
if (nListenerCount > 0)
{
for (sal_uInt16 n = 0; n < nListenerCount; n++)
for (size_t n = 0; n < nListenerCount; ++n)
{
SfxListener* pListener = GetListener(n);
if( pListener == this )

View File

@@ -877,9 +877,9 @@ namespace sdr
if(pBC)
{
sal_uInt16 nLstAnz(pBC->GetListenerCount());
const size_t nLstAnz(pBC->GetListenerCount());
for(sal_uInt16 nl(0); nl < nLstAnz; nl++)
for(size_t nl=0; nl < nLstAnz; ++nl)
{
SfxListener* pLst = pBC->GetListener(nl);
SdrEdgeObj* pEdge = PTR_CAST(SdrEdgeObj, pLst);

View File

@@ -141,11 +141,11 @@ SdrView* SdrViewIter::ImpFindView()
{
if(mpModel)
{
sal_uInt32 nLsAnz(mpModel->GetListenerCount());
const size_t nLsAnz(mpModel->GetListenerCount());
while(mnListenerNum < nLsAnz)
{
SfxListener* pLs = mpModel->GetListener((sal_uInt16)mnListenerNum);
SfxListener* pLs = mpModel->GetListener(mnListenerNum);
mpAktView = PTR_CAST(SdrView, pLs);
if(mpAktView)

View File

@@ -1034,9 +1034,9 @@ void SwXStyleFamily::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
SwXStyle* SwXStyleFamily::_FindStyle(const OUString& rStyleName)const
{
sal_uInt16 nLCount = pBasePool->GetListenerCount();
const size_t nLCount = pBasePool->GetListenerCount();
SfxListener* pListener = 0;
for( sal_uInt16 i = 0; i < nLCount; i++)
for( size_t i = 0; i < nLCount; ++i)
{
pListener = pBasePool->GetListener( i );
SwXStyle* pTempStyle = dynamic_cast<SwXStyle*>( pListener );