From ea20fcce1dac735a9730ab6672bf60ccec595e71 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 22 Jul 2019 16:10:32 +0200 Subject: close some more holes in structures and improve the pahole script so I can just run it once over the whole codebase Change-Id: I7e1775974a3a61f8c0e40646158f01163ace60cc Reviewed-on: https://gerrit.libreoffice.org/76122 Tested-by: Jenkins Reviewed-by: Noel Grandin --- registry/source/reflwrit.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'registry') diff --git a/registry/source/reflwrit.cxx b/registry/source/reflwrit.cxx index 77ae435101ee..afb01d96b213 100644 --- a/registry/source/reflwrit.cxx +++ b/registry/source/reflwrit.cxx @@ -174,16 +174,15 @@ sal_uInt32 writeDouble(sal_uInt8* buffer, double v) struct CPInfo { - CPInfoTag const m_tag; union { const sal_Char* aUtf8; RTUik* aUik; RTConstValueUnion aConst; } m_value; - - sal_uInt16 m_index; struct CPInfo* m_next; + CPInfoTag const m_tag; + sal_uInt16 m_index; CPInfo(CPInfoTag tag, struct CPInfo* prev); @@ -193,9 +192,9 @@ struct CPInfo }; CPInfo::CPInfo(CPInfoTag tag, struct CPInfo* prev) - : m_tag(tag) + : m_next(nullptr) + , m_tag(tag) , m_index(0) - , m_next(nullptr) { if (prev) { -- cgit