diff options
author | Noel Grandin <noel@peralex.com> | 2015-03-06 11:12:14 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-03-11 10:16:53 +0200 |
commit | 5eea85ec4fa7c458785be749a0e370a0883ff693 (patch) | |
tree | 8e9c5055d2ebfa1586b8106dc4f0a4d69f0d4021 /sw/source/core/edit | |
parent | 68c87b46fd26291463989d5bf751bc4cecf09b28 (diff) |
convert SwMoveFlags and SwInsertFlags from enum to enum class
Change-Id: I067656a47845c5d3fa143ce400b4ef0f8bf9ac5f
Diffstat (limited to 'sw/source/core/edit')
-rw-r--r-- | sw/source/core/edit/edglbldc.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/edit/editsh.cxx | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/sw/source/core/edit/edglbldc.cxx b/sw/source/core/edit/edglbldc.cxx index 3ddb6f687f14..cb31d27169d7 100644 --- a/sw/source/core/edit/edglbldc.cxx +++ b/sw/source/core/edit/edglbldc.cxx @@ -335,9 +335,7 @@ bool SwEditShell::MoveGlobalDocContent( const SwGlblDocContents& rArr , aInsPos = pMyDoc->GetNodes().GetEndOfContent(); bool bRet = pMyDoc->getIDocumentContentOperations().MoveNodeRange( aRg, aInsPos, - static_cast<IDocumentContentOperations::SwMoveFlags>( - IDocumentContentOperations::DOC_MOVEALLFLYS - | IDocumentContentOperations::DOC_CREATEUNDOOBJ )); + SwMoveFlags::ALLFLYS | SwMoveFlags::CREATEUNDOOBJ ); EndAllAction(); return bRet; diff --git a/sw/source/core/edit/editsh.cxx b/sw/source/core/edit/editsh.cxx index 96110ba9829d..39d6d81e2d27 100644 --- a/sw/source/core/edit/editsh.cxx +++ b/sw/source/core/edit/editsh.cxx @@ -87,12 +87,10 @@ void SwEditShell::Insert2(const OUString &rStr, const bool bForceExpandHints ) { StartAllAction(); { - const enum IDocumentContentOperations::InsertFlags nInsertFlags = + const enum SwInsertFlags nInsertFlags = (bForceExpandHints) - ? static_cast<IDocumentContentOperations::InsertFlags>( - IDocumentContentOperations::INS_FORCEHINTEXPAND | - IDocumentContentOperations::INS_EMPTYEXPAND) - : IDocumentContentOperations::INS_EMPTYEXPAND; + ? (SwInsertFlags::FORCEHINTEXPAND | SwInsertFlags::EMPTYEXPAND) + : SwInsertFlags::EMPTYEXPAND; for(SwPaM& rCurrentCrsr : getShellCrsr( true )->GetRingContainer()) { |