summaryrefslogtreecommitdiff
path: root/sc/source/ui/xmlsource
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-12-30 21:19:04 +0100
committerJulien Nabet <serval2412@yahoo.fr>2012-12-30 21:19:04 +0100
commit2fbd64cef870568da1479a03f6ea778bab68a09b (patch)
tree244cd640702a2af5525b85f674f33fbb26d8f6db /sc/source/ui/xmlsource
parente4cb67b4dabe40fdf8ce703d6739db7863c52fb4 (diff)
More cppcheck cleaning in sc
Change-Id: Ie040fa7ed9a3304bd4a10e404b7a0a4e45cbd69c
Diffstat (limited to 'sc/source/ui/xmlsource')
-rw-r--r--sc/source/ui/xmlsource/xmlsourcedlg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/xmlsource/xmlsourcedlg.cxx b/sc/source/ui/xmlsource/xmlsourcedlg.cxx
index f7466629d3cf..00e62e932dea 100644
--- a/sc/source/ui/xmlsource/xmlsourcedlg.cxx
+++ b/sc/source/ui/xmlsource/xmlsourcedlg.cxx
@@ -336,12 +336,12 @@ void ScXMLSourceDlg::TreeItemSelected()
void ScXMLSourceDlg::DefaultElementSelected(SvTreeListEntry& rEntry)
{
- ScOrcusXMLTreeParam::EntryData* pUserData = NULL;
if (maLbTree.GetChildCount(&rEntry) > 0)
{
// Only an element with no child elements (leaf element) can be linked.
bool bHasChild = false;
+ ScOrcusXMLTreeParam::EntryData* pUserData = NULL;
for (SvTreeListEntry* pChild = maLbTree.FirstChild(&rEntry); pChild; pChild = maLbTree.NextSibling(pChild))
{
pUserData = ScOrcusXMLTreeParam::getUserData(*pChild);