diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-22 14:24:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-23 09:39:06 +0000 |
commit | 88ec24a23a10af771879421360fe4330cbf174b0 (patch) | |
tree | d5622e99b476f3d9986f9f627f023d5410dc25a2 /sc/source/ui/unoobj/nameuno.cxx | |
parent | 275f777e824f56881184b8c4463c3766064c2335 (diff) |
convert NAME constants to CreateNameFlags o3tl::typed_flags enum
Change-Id: I6265c76067402808454184f1318feeb78a140617
Reviewed-on: https://gerrit.libreoffice.org/35555
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/unoobj/nameuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/nameuno.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/unoobj/nameuno.cxx b/sc/source/ui/unoobj/nameuno.cxx index 051b879bf800..3fb3667e7f02 100644 --- a/sc/source/ui/unoobj/nameuno.cxx +++ b/sc/source/ui/unoobj/nameuno.cxx @@ -527,13 +527,13 @@ void SAL_CALL ScNamedRangesObj::addNewFromTitles( const table::CellRangeAddress& ScRange aRange; ScUnoConversion::FillScRange( aRange, aSource ); - sal_uInt16 nFlags = 0; - if (bTop) nFlags |= NAME_TOP; - if (bLeft) nFlags |= NAME_LEFT; - if (bBottom) nFlags |= NAME_BOTTOM; - if (bRight) nFlags |= NAME_RIGHT; + CreateNameFlags nFlags = CreateNameFlags::NONE; + if (bTop) nFlags |= CreateNameFlags::Top; + if (bLeft) nFlags |= CreateNameFlags::Left; + if (bBottom) nFlags |= CreateNameFlags::Bottom; + if (bRight) nFlags |= CreateNameFlags::Right; - if (nFlags) + if (nFlags != CreateNameFlags::NONE) pDocShell->GetDocFunc().CreateNames( aRange, nFlags, true, GetTab_Impl() ); } |