Kaydet (Commit) f4166f96 authored tarafından Matteo Casalin's avatar Matteo Casalin

sal_uInt16 to size_t

Change-Id: I46d85e82376a3135408ab77ad31b76a5edbe9ce7
üst 42f2f473
......@@ -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];
}
......
......@@ -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;
......
......@@ -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())
......
......@@ -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 )
......
......@@ -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);
......
......@@ -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)
......
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment