From 81e3d9daed06c0f1153d4d18181cf986a7f82fca Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Sun, 20 Jun 2021 19:27:17 +0900 Subject: drawinglayer: remove ImplPrimitive2DIDBlock macro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- include/drawinglayer/primitive2d/baseprimitive2d.hxx | 9 --------- 1 file changed, 9 deletions(-) (limited to 'include') diff --git a/include/drawinglayer/primitive2d/baseprimitive2d.hxx b/include/drawinglayer/primitive2d/baseprimitive2d.hxx index 7619e04e5279..dd7f002f1faf 100644 --- a/include/drawinglayer/primitive2d/baseprimitive2d.hxx +++ b/include/drawinglayer/primitive2d/baseprimitive2d.hxx @@ -27,15 +27,6 @@ #include #include -/** defines ImplPrimitive2DIDBlock - Added to be able to simply change identification stuff later, e.g. add - an identification string and/or ID to the interface and to the implementation - ATM used to delclare implement getPrimitive2DID() -*/ - -#define ImplPrimitive2DIDBlock(TheClass, TheID) \ - sal_uInt32 TheClass::getPrimitive2DID() const { return TheID; } - namespace drawinglayer::geometry { class ViewInformation2D; -- cgit