summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej@ahunt.org>2015-05-28 14:15:49 +0100
committerAndrzej Hunt <andrzej@ahunt.org>2015-10-20 18:18:36 +0200
commite7ed7ee97ea99fc53cfc0049827672b1b01b4e3e (patch)
tree13f3f9dab133ddbbd1a7e6e62ba21c2355d15814
parentd834dccb0e5200e66555ac7a84fc071d56fb5635 (diff)
Use GetParamCount instead of GetByte.
Change-Id: I8f49d198c2e49246a28839a77c37563e9a8b19a5
-rw-r--r--sc/source/core/units/unitsimpl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/units/unitsimpl.cxx b/sc/source/core/units/unitsimpl.cxx
index 0f79edb9e295..fc4e899cf19c 100644
--- a/sc/source/core/units/unitsimpl.cxx
+++ b/sc/source/core/units/unitsimpl.cxx
@@ -172,7 +172,7 @@ UnitsResult UnitsImpl::getOutputUnitsForOpCode(stack< RAUSItem >& rStack, const
}
} else if (nOpCode >= SC_OPCODE_START_2_PAR &&
nOpCode < SC_OPCODE_STOP_2_PAR) {
- sal_uInt8 nParams = pToken->GetByte();
+ sal_uInt8 nParams = pToken->GetParamCount();
assert(nParams <= rStack.size());