summaryrefslogtreecommitdiff
path: root/registry/source
diff options
context:
space:
mode:
Diffstat (limited to 'registry/source')
-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)
{