diff options
author | Noel Grandin <noel@peralex.com> | 2016-07-22 14:35:27 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-07-25 06:09:17 +0000 |
commit | 938821fb08e427864db6a10642f385bde9803f6c (patch) | |
tree | 759da9d0d0905a90f6dac2f0bf750721c17421c4 /connectivity/source/drivers/file/fcode.cxx | |
parent | 4d4d77a1aad1bcae18bad35dad5308d33d6b2e51 (diff) |
new loplugin overrideparam
verify that parameters on override methods have the same set of default
values for their params as their parent/super-methods do.
Change-Id: Ibdbc1c6e417fbaa680ea025a6bbf5ba9c2e5bcd2
Reviewed-on: https://gerrit.libreoffice.org/27437
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'connectivity/source/drivers/file/fcode.cxx')
-rw-r--r-- | connectivity/source/drivers/file/fcode.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/drivers/file/fcode.cxx b/connectivity/source/drivers/file/fcode.cxx index a536d0c5b452..47e7cac831d7 100644 --- a/connectivity/source/drivers/file/fcode.cxx +++ b/connectivity/source/drivers/file/fcode.cxx @@ -178,7 +178,7 @@ void OOp_NOT::Exec(OCodeStack& rCodeStack) OOperand* pOperand = rCodeStack.top(); rCodeStack.pop(); - rCodeStack.push(new OOperandResultBOOL(operate(pOperand))); + rCodeStack.push(new OOperandResultBOOL(operate(pOperand, nullptr))); if( typeid(OOperandResult) == typeid(*pOperand)) delete pOperand; @@ -201,7 +201,7 @@ void OOp_ISNULL::Exec(OCodeStack& rCodeStack) OOperand* pOperand = rCodeStack.top(); rCodeStack.pop(); - rCodeStack.push(new OOperandResultBOOL(operate(pOperand))); + rCodeStack.push(new OOperandResultBOOL(operate(pOperand, nullptr))); if( typeid(OOperandResult) == typeid(*pOperand)) delete pOperand; } @@ -215,7 +215,7 @@ bool OOp_ISNULL::operate(const OOperand* pOperand, const OOperand*) const bool OOp_ISNOTNULL::operate(const OOperand* pOperand, const OOperand*) const { - return !OOp_ISNULL::operate(pOperand); + return !OOp_ISNULL::operate(pOperand, nullptr); } |