diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-08-31 23:18:06 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-09-12 14:18:50 +0200 |
commit | 9c7edfd5ec231040b0df5c71df6a11080b85daa1 (patch) | |
tree | b5c9b7dd9973a803628b461955f0adf94861cdb1 /sd | |
parent | f4c300eae4e9aaaec9e5d1f478ad35161ede2761 (diff) |
Use sal_Int32 and LISTBOX_ENTRY_NOTFOUND for GetSelectEntryPos
Change-Id: I07f6f4426e87cd4066663e0ba7c26917bb984cbd
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/dlg/dlgass.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sd/source/ui/dlg/dlgass.cxx b/sd/source/ui/dlg/dlgass.cxx index 0ac1b70c77eb..014d25080142 100644 --- a/sd/source/ui/dlg/dlgass.cxx +++ b/sd/source/ui/dlg/dlgass.cxx @@ -895,9 +895,9 @@ OUString AssistentDlgImpl::GetDocFileName() OUString aDocFile; if( GetStartType() == ST_TEMPLATE ) { - const sal_uInt16 nEntry = mpPage1TemplateLB->GetSelectEntryPos(); + const sal_Int32 nEntry = mpPage1TemplateLB->GetSelectEntryPos(); TemplateEntry* pEntry = NULL; - if (mpTemplateRegion && nEntry != (sal_uInt16)-1) + if (mpTemplateRegion && nEntry != LISTBOX_ENTRY_NOTFOUND) pEntry = mpTemplateRegion->maEntries[nEntry]; if(pEntry) @@ -911,8 +911,8 @@ OUString AssistentDlgImpl::GetDocFileName() } else if( GetStartType() == ST_OPEN ) { - const sal_uInt16 nEntry = mpPage1OpenLB->GetSelectEntryPos(); - if(nEntry != (sal_uInt16)-1 ) + const sal_Int32 nEntry = mpPage1OpenLB->GetSelectEntryPos(); + if( nEntry != LISTBOX_ENTRY_NOTFOUND ) aDocFile = maOpenFilesList[nEntry]; } @@ -924,9 +924,9 @@ OUString AssistentDlgImpl::GetDocFileName() OUString AssistentDlgImpl::GetLayoutFileName() { - const sal_uInt16 nEntry = mpPage2LayoutLB->GetSelectEntryPos(); + const sal_Int32 nEntry = mpPage2LayoutLB->GetSelectEntryPos(); TemplateEntry* pEntry = NULL; - if(nEntry != (sal_uInt16)-1 && nEntry > 0) + if(nEntry != LISTBOX_ENTRY_NOTFOUND && nEntry > 0) pEntry = mpLayoutRegion->maEntries[nEntry-1]; if(pEntry) |