summaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-22 16:10:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-23 06:46:41 +0200
commitea20fcce1dac735a9730ab6672bf60ccec595e71 (patch)
treedf8f25ec6a90f47fb878236e239f8a23e679943c /registry
parenta17b19726d723b16dacb49db7a8efd5fee9cb4cf (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'registry')
-rw-r--r--registry/source/reflwrit.cxx9
1 files changed, 4 insertions, 5 deletions
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)
{