diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-08-31 14:14:50 +0200 |
---|---|---|
committer | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-08-31 16:34:15 +0000 |
commit | f322c52b89f514b792179c4d7e6ee2c3aa893a4e (patch) | |
tree | 0abd175058dd939b1cb0379c4dd4a9355c2d7997 /rsc/inc/rscconst.hxx | |
parent | 2a1431208e4292e8563935f5e8cd0107113f65ea (diff) |
use initializer list ctors for res types
make nSize and nOffInstData const,
let Size() return fixed sizes
Change-Id: I7e2792e1cd990e65582020353054087f94856151
Reviewed-on: https://gerrit.libreoffice.org/28545
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'rsc/inc/rscconst.hxx')
-rw-r--r-- | rsc/inc/rscconst.hxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rsc/inc/rscconst.hxx b/rsc/inc/rscconst.hxx index 275996feb8f0..ec3d3621b5f7 100644 --- a/rsc/inc/rscconst.hxx +++ b/rsc/inc/rscconst.hxx @@ -52,11 +52,10 @@ class RscEnum : public RscConst sal_uInt32 nValue; // constant position in the array bool bDflt; // is default }; - sal_uInt32 nSize; public: RscEnum( Atom nId, sal_uInt32 nTypId ); RSCINST Create( RSCINST * pInst, const RSCINST & rDfltInst, bool bOwnClass = false ) override; - sal_uInt32 Size() override { return nSize; } + sal_uInt32 Size() const override { return ALIGNED_SIZE(sizeof(RscEnumInst)); } virtual void SetToDefault( const RSCINST & rInst ) override { |