diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-11-23 18:54:42 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-11-23 23:38:07 +0100 |
commit | e6ab01ce532d1db01579b70bd476b2f643522bf9 (patch) | |
tree | 635d070ef835aa7f016a540a486fcb363c721e9b /stoc/source/defaultregistry | |
parent | 5efa7d4605c8c683bb54a1723d0916e6f0166b52 (diff) |
cppcheck: performing init in init list (sfx2/slideshow/stoc/store)
Change-Id: Iddbd3256aabe9552472b55d3d9b88a3769698de9
Reviewed-on: https://gerrit.libreoffice.org/83576
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'stoc/source/defaultregistry')
-rw-r--r-- | stoc/source/defaultregistry/defaultregistry.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/stoc/source/defaultregistry/defaultregistry.cxx b/stoc/source/defaultregistry/defaultregistry.cxx index f0a4d0ff18a3..aff6a5f1113c 100644 --- a/stoc/source/defaultregistry/defaultregistry.cxx +++ b/stoc/source/defaultregistry/defaultregistry.cxx @@ -137,11 +137,8 @@ protected: NestedKeyImpl::NestedKeyImpl( NestedRegistryImpl* pDefaultRegistry, Reference<XRegistryKey>& localKey, Reference<XRegistryKey>& defaultKey ) - : m_xRegistry(pDefaultRegistry) + : m_state(m_xRegistry->m_state), m_xRegistry(pDefaultRegistry), m_localKey(localKey), m_defaultKey(defaultKey) { - m_localKey = localKey; - m_defaultKey = defaultKey; - if (m_localKey.is()) { m_name = m_localKey->getKeyName(); @@ -150,8 +147,6 @@ NestedKeyImpl::NestedKeyImpl( NestedRegistryImpl* pDefaultRegistry, { m_name = m_defaultKey->getKeyName(); } - - m_state = m_xRegistry->m_state; } |