summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2019-11-24 21:43:25 +0100
committerJulien Nabet <serval2412@yahoo.fr>2019-11-24 22:52:21 +0100
commit9d63592d530e9ad5ab2d6aee0aba5bc0c117aae3 (patch)
tree2dd1efe038cd76ec62201873af4287939a1398f8 /scripting
parentb9448acf3ce4c1c850a691fc33686fd5165b94d9 (diff)
cppcheck: performing init in init list (sc/scripting/sd)
Change-Id: I8bd4c1b7b551a96ecd5a2b50fbfdf225567175f6 Reviewed-on: https://gerrit.libreoffice.org/83621 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/provider/BrowseNodeFactoryImpl.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripting/source/provider/BrowseNodeFactoryImpl.cxx b/scripting/source/provider/BrowseNodeFactoryImpl.cxx
index b544fd328a56..a4d91f776d40 100644
--- a/scripting/source/provider/BrowseNodeFactoryImpl.cxx
+++ b/scripting/source/provider/BrowseNodeFactoryImpl.cxx
@@ -65,8 +65,8 @@ private:
public:
explicit BrowseNodeAggregator( const Reference< browse::XBrowseNode >& node )
+ : m_Name(node->getName())
{
- m_Name = node->getName();
m_Nodes.resize( 1 );
m_Nodes[ 0 ] = node;
}
@@ -166,9 +166,8 @@ private:
public:
explicit LocationBrowseNode( const Reference< browse::XBrowseNode >& node )
+ : m_sNodeName(node->getName())
{
- m_sNodeName = node->getName();
- m_hBNA = nullptr;
m_origNode.set( node );
}