summaryrefslogtreecommitdiff
path: root/drawinglayer/source/primitive2d/objectinfoprimitive2d.cxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2021-06-20 19:27:17 +0900
committerTomaž Vajngerl <quikee@gmail.com>2021-06-20 14:07:20 +0200
commit81e3d9daed06c0f1153d4d18181cf986a7f82fca (patch)
treeedc34721eea0b402c3c310b4eacd4b8fee7a0889 /drawinglayer/source/primitive2d/objectinfoprimitive2d.cxx
parentffef53274b44bfe77128ba400845f4c4ce70893e (diff)
drawinglayer: remove ImplPrimitive2DIDBlock macro
We can just implement the simple getPrimitive2DID method in all primitives. The ImplPrimitive2DIDBlock macro doesn't save us anything. Change-Id: I02f44d4891d7b340220890bf52a7ebfc8e41850a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117509 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'drawinglayer/source/primitive2d/objectinfoprimitive2d.cxx')
-rw-r--r--drawinglayer/source/primitive2d/objectinfoprimitive2d.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/drawinglayer/source/primitive2d/objectinfoprimitive2d.cxx b/drawinglayer/source/primitive2d/objectinfoprimitive2d.cxx
index 32e66c705e62..8ea05672812d 100644
--- a/drawinglayer/source/primitive2d/objectinfoprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/objectinfoprimitive2d.cxx
@@ -50,7 +50,10 @@ namespace drawinglayer::primitive2d
}
// provide unique ID
- ImplPrimitive2DIDBlock(ObjectInfoPrimitive2D, PRIMITIVE2D_ID_OBJECTINFOPRIMITIVE2D)
+ sal_uInt32 ObjectInfoPrimitive2D::getPrimitive2DID() const
+ {
+ return PRIMITIVE2D_ID_OBJECTINFOPRIMITIVE2D;
+ }
} // end of namespace