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

sal_uInt16 to sal_Int32 and constify

Change-Id: Ib1c3b33acf2b38c47d1c20a74c9454d8206cac82
üst 5253b04c
...@@ -73,8 +73,8 @@ SwCondCollPage::SwCondCollPage(Window *pParent, const SfxItemSet &rSet) ...@@ -73,8 +73,8 @@ SwCondCollPage::SwCondCollPage(Window *pParent, const SfxItemSet &rSet)
get(m_pRemovePB, "remove"); get(m_pRemovePB, "remove");
get(m_pAssignPB, "apply"); get(m_pAssignPB, "apply");
sal_uInt16 nStrCount = m_pFilterLB->GetEntryCount(); const sal_Int32 nStrCount = m_pFilterLB->GetEntryCount();
for (sal_uInt16 i = 0; i < nStrCount; ++i) for (sal_Int32 i = 0; i < nStrCount; ++i)
m_aStrArr.push_back(m_pFilterLB->GetEntry(i)); m_aStrArr.push_back(m_pFilterLB->GetEntry(i));
m_pFilterLB->Clear(); m_pFilterLB->Clear();
...@@ -102,7 +102,7 @@ SwCondCollPage::SwCondCollPage(Window *pParent, const SfxItemSet &rSet) ...@@ -102,7 +102,7 @@ SwCondCollPage::SwCondCollPage(Window *pParent, const SfxItemSet &rSet)
size_t nCount = aFamilies.size(); size_t nCount = aFamilies.size();
for( size_t i = 0; i < nCount; ++i ) for( size_t i = 0; i < nCount; ++i )
{ {
if(SFX_STYLE_FAMILY_PARA == (sal_uInt16)(pFamilyItem = aFamilies.at( i ))->GetFamily()) if(SFX_STYLE_FAMILY_PARA == (pFamilyItem = aFamilies.at( i ))->GetFamily())
break; break;
} }
...@@ -124,7 +124,7 @@ SwCondCollPage::SwCondCollPage(Window *pParent, const SfxItemSet &rSet) ...@@ -124,7 +124,7 @@ SwCondCollPage::SwCondCollPage(Window *pParent, const SfxItemSet &rSet)
SwCondCollPage::~SwCondCollPage() SwCondCollPage::~SwCondCollPage()
{ {
for(sal_uInt16 i = 0; i < m_pFilterLB->GetEntryCount(); ++i) for(sal_Int32 i = 0; i < m_pFilterLB->GetEntryCount(); ++i)
delete (sal_uInt16*)m_pFilterLB->GetEntryData(i); delete (sal_uInt16*)m_pFilterLB->GetEntryData(i);
} }
...@@ -252,8 +252,8 @@ IMPL_LINK( SwCondCollPage, SelectHdl, ListBox*, pBox) ...@@ -252,8 +252,8 @@ IMPL_LINK( SwCondCollPage, SelectHdl, ListBox*, pBox)
if (pBox == m_pFilterLB) if (pBox == m_pFilterLB)
{ {
m_pStyleLB->Clear(); m_pStyleLB->Clear();
sal_uInt16 nSearchFlags = pBox->GetSelectEntryPos(); const sal_Int32 nSelPos = pBox->GetSelectEntryPos();
nSearchFlags = *(sal_uInt16*)m_pFilterLB->GetEntryData(nSearchFlags); const sal_uInt16 nSearchFlags = *(sal_uInt16*)m_pFilterLB->GetEntryData(nSelPos);
SfxStyleSheetBasePool* pPool = rSh.GetView().GetDocShell()->GetStyleSheetPool(); SfxStyleSheetBasePool* pPool = rSh.GetView().GetDocShell()->GetStyleSheetPool();
pPool->SetSearchMask(SFX_STYLE_FAMILY_PARA, nSearchFlags); pPool->SetSearchMask(SFX_STYLE_FAMILY_PARA, nSearchFlags);
const SfxStyleSheetBase* pBase = pPool->First(); const SfxStyleSheetBase* pBase = pPool->First();
......
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