From de78304d92140901d19a6ea17bdc1d568df955c4 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 5 Nov 2020 14:04:04 +0000 Subject: make SdrObject Identifiers SdrObjKind enum members MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Caolán McNamara --- svx/source/engine3d/cube3d.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svx/source/engine3d/cube3d.cxx') diff --git a/svx/source/engine3d/cube3d.cxx b/svx/source/engine3d/cube3d.cxx index 401e1b085410..9ee267afb061 100644 --- a/svx/source/engine3d/cube3d.cxx +++ b/svx/source/engine3d/cube3d.cxx @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #include #include @@ -71,7 +71,7 @@ void E3dCubeObj::SetDefaultAttributes(const E3dDefaultAttributes& rDefault) bPosIsCenter = rDefault.GetDefaultCubePosIsCenter(); } -sal_uInt16 E3dCubeObj::GetObjIdentifier() const +SdrObjKind E3dCubeObj::GetObjIdentifier() const { return E3D_CUBEOBJ_ID; } -- cgit