From a651dbcfca9e198b5c2561076961504586bc6bea Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 10 May 2017 13:52:51 +0200 Subject: convert SdrLayerId to strong_int Also - rename SetOfByte to SdrLayerIDSet - add asserts in SdrLayerAdmin::GetUniqueLayerID so that we don't allocate overlapping SdrLayerID values - add a new constant SDRLAYERPOS_NOTFOUND to be returned from SdrLayerAdmin::GetLayerPos Change-Id: I3bb3489f9338e3d02c4040bcbd811744699941c8 Reviewed-on: https://gerrit.libreoffice.org/37467 Tested-by: Jenkins Reviewed-by: Noel Grandin --- reportdesign/inc/RptDef.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'reportdesign/inc') diff --git a/reportdesign/inc/RptDef.hxx b/reportdesign/inc/RptDef.hxx index 0007bedd9c1a..01cea68a878c 100644 --- a/reportdesign/inc/RptDef.hxx +++ b/reportdesign/inc/RptDef.hxx @@ -44,9 +44,9 @@ namespace com { namespace sun { namespace star { namespace rptui { // not all used at the moment -#define RPT_LAYER_FRONT 0 -#define RPT_LAYER_BACK 1 -#define RPT_LAYER_HIDDEN 2 +constexpr SdrLayerID RPT_LAYER_FRONT (0); +constexpr SdrLayerID RPT_LAYER_BACK (1); +constexpr SdrLayerID RPT_LAYER_HIDDEN (2); -- cgit