summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-04-01 19:26:53 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-04-01 19:51:19 +0100
commit6a9478481c42a717191cc6beb8534e263b98036d (patch)
treed7672a99bef86a7f9801de4f23fc165a273fff51 /sc/source
parent18713e5e922d60439b5850dcc2640c654dffcdb7 (diff)
coverity#1403666 Uninitialized scalar variable
and a bunch others Change-Id: I569913ddab8eba2c168b1aa0877fbfc809dc34b6
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/core/tool/interpr1.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index f8d682a9c1c5..fb1503e697d2 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -3994,9 +3994,9 @@ void ScInterpreter::ScColumn()
{
case svSingleRef :
{
- SCCOL nCol1;
- SCROW nRow1;
- SCTAB nTab1;
+ SCCOL nCol1(0);
+ SCROW nRow1(0);
+ SCTAB nTab1(0);
PopSingleRef( nCol1, nRow1, nTab1 );
nVal = (double) (nCol1 + 1);
}
@@ -4075,9 +4075,9 @@ void ScInterpreter::ScRow()
{
case svSingleRef :
{
- SCCOL nCol1;
- SCROW nRow1;
- SCTAB nTab1;
+ SCCOL nCol1(0);
+ SCROW nRow1(0);
+ SCTAB nTab1(0);
PopSingleRef( nCol1, nRow1, nTab1 );
nVal = (double) (nRow1 + 1);
}
@@ -4142,10 +4142,10 @@ void ScInterpreter::ScSheet()
break;
case svSingleRef :
{
- SCCOL nCol1;
- SCROW nRow1;
- SCTAB nTab1;
- PopSingleRef( nCol1, nRow1, nTab1 );
+ SCCOL nCol1(0);
+ SCROW nRow1(0);
+ SCTAB nTab1(0);
+ PopSingleRef(nCol1, nRow1, nTab1);
nVal = nTab1 + 1;
}
break;