summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/misc/docfnote.cxx6
-rw-r--r--sw/source/ui/misc/impfnote.hxx2
2 files changed, 3 insertions, 5 deletions
diff --git a/sw/source/ui/misc/docfnote.cxx b/sw/source/ui/misc/docfnote.cxx
index 45ce95423f78..755aeb4759f2 100644
--- a/sw/source/ui/misc/docfnote.cxx
+++ b/sw/source/ui/misc/docfnote.cxx
@@ -250,7 +250,7 @@ VclPtr<SfxTabPage> SwEndNoteOptionPage::Create( vcl::Window *pParent, const SfxI
// Different kinds of numbering; because the Listbox has varying numbers of
// entries, here are functions to set and query the intended kind of numbering.
-void SwEndNoteOptionPage::SelectNumbering(int eNum)
+void SwEndNoteOptionPage::SelectNumbering(SwFootnoteNum const eNum)
{
OUString sSelect;
switch(eNum)
@@ -264,10 +264,8 @@ void SwEndNoteOptionPage::SelectNumbering(int eNum)
case FTNNUM_CHAPTER:
sSelect = aNumChapter;
break;
-#if OSL_DEBUG_LEVEL > 0
default:
- OSL_FAIL("Which numbering type?");
-#endif
+ assert(false);
}
m_pNumCountBox->SelectEntry(sSelect);
NumCountHdl(*m_pNumCountBox);
diff --git a/sw/source/ui/misc/impfnote.hxx b/sw/source/ui/misc/impfnote.hxx
index 4fd2c95dffd2..4cde50dabeb2 100644
--- a/sw/source/ui/misc/impfnote.hxx
+++ b/sw/source/ui/misc/impfnote.hxx
@@ -60,7 +60,7 @@ class SwEndNoteOptionPage : public SfxTabPage
bool bPosDoc;
bool bEndNote;
- inline void SelectNumbering(int eNum);
+ inline void SelectNumbering(SwFootnoteNum eNum);
SwFootnoteNum GetNumbering() const;
DECL_LINK(PosPageHdl, Button*, void);