summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/dbase/dindexnode.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2014-12-08 19:36:22 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-12-09 03:24:35 +0000
commit54cbb57d4c3ccf1e1c8455ac413183edbdeb3416 (patch)
tree989caae10d27ec9907b298af288ad2a4ef175622 /connectivity/source/drivers/dbase/dindexnode.cxx
parent141469eb831c054d6f4b56fcaa50a03e52429f11 (diff)
fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: Ib35eb591534c3f23adc3cb7b7fa9696dc5cbeabf Reviewed-on: https://gerrit.libreoffice.org/13383 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'connectivity/source/drivers/dbase/dindexnode.cxx')
-rw-r--r--connectivity/source/drivers/dbase/dindexnode.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/connectivity/source/drivers/dbase/dindexnode.cxx b/connectivity/source/drivers/dbase/dindexnode.cxx
index 01f66a9aa859..65774cb0c676 100644
--- a/connectivity/source/drivers/dbase/dindexnode.cxx
+++ b/connectivity/source/drivers/dbase/dindexnode.cxx
@@ -194,7 +194,6 @@ bool ONDXPage::Insert(ONDXNode& rNode, sal_uInt32 nRowsLeft)
bool bAppend = nRowsLeft > 0;
if (IsFull())
{
- bool bResult = true;
ONDXNode aSplitNode;
if (bAppend)
aSplitNode = rNode;
@@ -204,7 +203,7 @@ bool ONDXPage::Insert(ONDXNode& rNode, sal_uInt32 nRowsLeft)
aSplitNode = (*this)[nCount-1];
if(rNode.GetKey() <= aSplitNode.GetKey())
{
-
+ bool bResult = true;
// this practically reduces the number of nodes by 1
if (IsLeaf() && this == rIndex.m_aCurLeaf)
{