summaryrefslogtreecommitdiff
path: root/svx/source/form/fmobjfac.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-11-05 14:04:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-11-06 17:16:09 +0100
commitde78304d92140901d19a6ea17bdc1d568df955c4 (patch)
treef0494ee90a4d7493e2381bbd17f5c1f337a35f0e /svx/source/form/fmobjfac.cxx
parent8c9b8c5970a08c2ef0ccddb7a691f3731d39175a (diff)
make SdrObject Identifiers SdrObjKind enum members
with unique values so that, e.g. if (pObj->GetObjIdentifier() == OBJ_LINE) is only true if pObj is a SdrPathObj and not a E3dScene Change-Id: I30c91e57eb27141390c644dec42e2a4bee96edf0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105374 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/form/fmobjfac.cxx')
-rw-r--r--svx/source/form/fmobjfac.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/svx/source/form/fmobjfac.cxx b/svx/source/form/fmobjfac.cxx
index 5694776e09cd..799106579ced 100644
--- a/svx/source/form/fmobjfac.cxx
+++ b/svx/source/form/fmobjfac.cxx
@@ -26,7 +26,7 @@
#include <svx/fmobjfac.hxx>
-#include <svx/fmglob.hxx>
+#include <svx/svdobjkind.hxx>
#include <fmobj.hxx>
@@ -206,6 +206,9 @@ IMPL_STATIC_LINK(FmFormObjFactory, MakeObject, SdrObjCreatorParams, aParams, Sdr
sServiceSpecifier = FM_SUN_COMPONENT_SPINBUTTON;
aInitialProperties.emplace_back( FM_PROP_BORDER, makeAny( sal_Int16(0) ) );
break;
+
+ default:
+ break;
}
// create the actual object