summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-01-04 15:52:45 +0100
committerMichael Stahl <mstahl@redhat.com>2017-01-04 17:09:27 +0100
commit3bacb560c60e6484f217b3edc251d91725b64b84 (patch)
treebfcebb83c1dc32c0657b2f462f80037bf94a842f /sw
parentda7b10018433946dd0e0125ec5316dbe8c8b683c (diff)
sw: more implicit int conversions in SwEndNoteOptionPage
Change-Id: I66033eeff8ebb636d5f55d61102a0f30f3353f85
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);