summaryrefslogtreecommitdiff
path: root/svx/source/form
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-22 08:24:14 +0200
committerNoel Grandin <noel@peralex.com>2016-08-22 08:24:48 +0200
commit0552ec9828ad65b1cf90f4e5253f0108facd5bf3 (patch)
treeb7b889ef11c53126304f77dd31d509fb633859ef /svx/source/form
parent2309217a55c8d5e6bdde2a6d4775f10415505fcd (diff)
convert SdrHintKind to scoped enum
Change-Id: I77ad33425d440263a71bc94f41d8e141f16dfb78
Diffstat (limited to 'svx/source/form')
-rw-r--r--svx/source/form/fmundo.cxx4
-rw-r--r--svx/source/form/fmvwimp.cxx2
-rw-r--r--svx/source/form/navigatortreemodel.cxx4
3 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/form/fmundo.cxx b/svx/source/form/fmundo.cxx
index 22476b5e6a46..9059a1431d95 100644
--- a/svx/source/form/fmundo.cxx
+++ b/svx/source/form/fmundo.cxx
@@ -290,12 +290,12 @@ void FmXUndoEnvironment::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
{
switch (pSdrHint->GetKind())
{
- case HINT_OBJINSERTED:
+ case SdrHintKind::ObjectInserted:
{
SdrObject* pSdrObj = const_cast<SdrObject*>(pSdrHint->GetObject());
Inserted( pSdrObj );
} break;
- case HINT_OBJREMOVED:
+ case SdrHintKind::ObjectRemoved:
{
SdrObject* pSdrObj = const_cast<SdrObject*>(pSdrHint->GetObject());
Removed( pSdrObj );
diff --git a/svx/source/form/fmvwimp.cxx b/svx/source/form/fmvwimp.cxx
index 649676f3625d..f330a6408451 100644
--- a/svx/source/form/fmvwimp.cxx
+++ b/svx/source/form/fmvwimp.cxx
@@ -1699,7 +1699,7 @@ FmXFormView::ObjectRemoveListener::ObjectRemoveListener( FmXFormView* pParent )
void FmXFormView::ObjectRemoveListener::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
{
const SdrHint* pSdrHint = dynamic_cast<const SdrHint*>(&rHint);
- if (pSdrHint && pSdrHint->GetKind() == HINT_OBJREMOVED)
+ if (pSdrHint && pSdrHint->GetKind() == SdrHintKind::ObjectRemoved)
m_pParent->ObjectRemovedInAliveMode(pSdrHint->GetObject());
}
diff --git a/svx/source/form/navigatortreemodel.cxx b/svx/source/form/navigatortreemodel.cxx
index bec558d0032e..675cad5a6ff7 100644
--- a/svx/source/form/navigatortreemodel.cxx
+++ b/svx/source/form/navigatortreemodel.cxx
@@ -690,10 +690,10 @@ namespace svxform
{
switch( pSdrHint->GetKind() )
{
- case HINT_OBJINSERTED:
+ case SdrHintKind::ObjectInserted:
InsertSdrObj(pSdrHint->GetObject());
break;
- case HINT_OBJREMOVED:
+ case SdrHintKind::ObjectRemoved:
RemoveSdrObj(pSdrHint->GetObject());
break;
default: