summaryrefslogtreecommitdiff
path: root/sw/source/ui/misc/titlepage.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/misc/titlepage.cxx')
-rw-r--r--sw/source/ui/misc/titlepage.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/misc/titlepage.cxx b/sw/source/ui/misc/titlepage.cxx
index 5ae2c30ed62b..b000026ec775 100644
--- a/sw/source/ui/misc/titlepage.cxx
+++ b/sw/source/ui/misc/titlepage.cxx
@@ -39,7 +39,7 @@ namespace
{
::boost::optional<sal_uInt16> oNumOffset = static_cast<const SwFormatPageDesc *>(pItem)->GetNumOffset();
if (oNumOffset)
- rPageNo = oNumOffset.get();
+ rPageNo = *oNumOffset;
if (ppPageFormatDesc)
ppPageFormatDesc->reset(static_cast<const SwFormatPageDesc *>(pItem->Clone()));
bRet = true;
@@ -71,7 +71,7 @@ namespace
::boost::optional<sal_uInt16> oNumOffset = pPageFormatDesc->GetNumOffset();
if (oNumOffset)
{
- nPgNo = oNumOffset.get();
+ nPgNo = *oNumOffset;
}
else
{