Commit cabacd5a authored by Willyanto Willyanto's avatar Willyanto Willyanto
Browse files

Match argument in calculateNextStep

This fixes Major - Function 'calculateNextStep' argument order different:
declaration 'value, valueMax, controlType, type' definition 'value, valueMax,
type, keyType' (CWE-683)
parent f1bd0749
Pipeline #229709 passed with stage
in 1 minute and 33 seconds
......@@ -207,9 +207,9 @@ void BackendInterface::setCapabilities(BackendInterface::Capabilities capabiliti
d->capabilities = capabilities;
}
int BackendInterface::calculateNextStep(int value, int valueMax, BrightnessControlType type, BrightnessLogic::BrightnessKeyType keyType)
int BackendInterface::calculateNextStep(int value, int valueMax, BrightnessControlType controlType, BrightnessLogic::BrightnessKeyType keyType)
{
BrightnessLogic *logic = d->brightnessLogic.value(type);
BrightnessLogic *logic = d->brightnessLogic.value(controlType);
logic->setValueMax(valueMax);
logic->setValue(value);
......
......@@ -322,7 +322,7 @@ protected:
void setBackendHasError(const QString &errorDetails);
// Steps logic
int calculateNextStep(int value, int valueMax, BrightnessControlType controlType, BrightnessLogic::BrightnessKeyType type);
int calculateNextStep(int value, int valueMax, BrightnessControlType controlType, BrightnessLogic::BrightnessKeyType keyType);
private:
class Private;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment