From bcb41235deaf4b7ca90522bda3ba21a686819e6e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 4 May 2016 11:31:33 +0200 Subject: convert SfxStyleFamily to scoped enum and update the RSC compiler to accept such In the process fix some confusion in SD where it was confusing SfxStyleFamily and the index of the relevant family (which other parts of the code in SVL use) Change-Id: I1efc9f85fbed8ab76eafe8f6e1ada411753ae5f9 --- sw/source/core/doc/docdesc.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/source/core/doc/docdesc.cxx') diff --git a/sw/source/core/doc/docdesc.cxx b/sw/source/core/doc/docdesc.cxx index 43cb12145782..44c7b2670072 100644 --- a/sw/source/core/doc/docdesc.cxx +++ b/sw/source/core/doc/docdesc.cxx @@ -621,7 +621,7 @@ void SwDoc::DelPageDesc( size_t i, bool bBroadcast ) SwPageDesc &rDel = *m_PageDescs[i]; if (bBroadcast) - BroadcastStyleOperation(rDel.GetName(), SFX_STYLE_FAMILY_PAGE, + BroadcastStyleOperation(rDel.GetName(), SfxStyleFamily::Page, SfxStyleSheetHintId::ERASED); if (GetIDocumentUndoRedo().DoesUndo()) @@ -669,7 +669,7 @@ SwPageDesc* SwDoc::MakePageDesc(const OUString &rName, const SwPageDesc *pCpy, m_PageDescs.push_back(std::unique_ptr(pNew)); if (bBroadcast) - BroadcastStyleOperation(rName, SFX_STYLE_FAMILY_PAGE, + BroadcastStyleOperation(rName, SfxStyleFamily::Page, SfxStyleSheetHintId::CREATED); if (GetIDocumentUndoRedo().DoesUndo()) -- cgit v1.2.3