summaryrefslogtreecommitdiff
path: root/sw/source/core/docnode
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-12 09:59:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-12 10:11:19 +0200
commited3a4fcc878e8f3ce720520d60448bc962da0754 (patch)
tree107d2e30caf6b88fb80fb6589bed1e50ae282771 /sw/source/core/docnode
parent5549160d97392d649bc3f7a490c161e77c1fd94a (diff)
convert GET_POOLID constants to scoped enum
Change-Id: Ifc54789d12d0b024ed28f13ec78b5c10afa902de
Diffstat (limited to 'sw/source/core/docnode')
-rw-r--r--sw/source/core/docnode/ndnotxt.cxx2
-rw-r--r--sw/source/core/docnode/node.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/docnode/ndnotxt.cxx b/sw/source/core/docnode/ndnotxt.cxx
index ba17a92b0b0f..5ff587ef6b7f 100644
--- a/sw/source/core/docnode/ndnotxt.cxx
+++ b/sw/source/core/docnode/ndnotxt.cxx
@@ -66,7 +66,7 @@ void SwNoTextNode::NewAttrSet( SwAttrPool& rPool )
// put names of parent style and conditional style:
const SwFormatColl* pFormatColl = GetFormatColl();
OUString sVal;
- SwStyleNameMapper::FillProgName( pFormatColl->GetName(), sVal, nsSwGetPoolIdFromName::GET_POOLID_TXTCOLL, true );
+ SwStyleNameMapper::FillProgName( pFormatColl->GetName(), sVal, SwGetPoolIdFromName::TxtColl, true );
SfxStringItem aFormatColl( RES_FRMATR_STYLE_NAME, sVal );
aNewAttrSet.Put( aFormatColl );
diff --git a/sw/source/core/docnode/node.cxx b/sw/source/core/docnode/node.cxx
index 19e210998de7..c9bdc8bd17c1 100644
--- a/sw/source/core/docnode/node.cxx
+++ b/sw/source/core/docnode/node.cxx
@@ -117,12 +117,12 @@ void SetParent( std::shared_ptr<const SfxItemSet>& rpAttrSet,
if ( pParentFormat )
{
- SwStyleNameMapper::FillProgName( pParentFormat->GetName(), sVal, nsSwGetPoolIdFromName::GET_POOLID_TXTCOLL, true );
+ SwStyleNameMapper::FillProgName( pParentFormat->GetName(), sVal, SwGetPoolIdFromName::TxtColl, true );
const SfxStringItem aAnyFormatColl( RES_FRMATR_STYLE_NAME, sVal );
aNewSet.Put( aAnyFormatColl );
if ( pConditionalFormat != pParentFormat )
- SwStyleNameMapper::FillProgName( pConditionalFormat->GetName(), sVal, nsSwGetPoolIdFromName::GET_POOLID_TXTCOLL, true );
+ SwStyleNameMapper::FillProgName( pConditionalFormat->GetName(), sVal, SwGetPoolIdFromName::TxtColl, true );
const SfxStringItem aFormatColl( RES_FRMATR_CONDITIONAL_STYLE_NAME, sVal );
aNewSet.Put( aFormatColl );