src: Correcting coding style of security related code.
Change-Id: Iff09b16d8a86462aff0abbd202b82cebb74bc365
diff --git a/src/security/validator-regex.cpp b/src/security/validator-regex.cpp
index 0f09741..48b9145 100644
--- a/src/security/validator-regex.cpp
+++ b/src/security/validator-regex.cpp
@@ -76,12 +76,12 @@
void
ValidatorRegex::checkPolicy(const Data& data,
- int stepCount,
+ int nSteps,
const OnDataValidated& onValidated,
const OnDataValidationFailed& onValidationFailed,
vector<shared_ptr<ValidationRequest> >& nextSteps)
{
- if (m_stepLimit == stepCount)
+ if (m_stepLimit == nSteps)
return onValidationFailed(data.shared_from_this(),
"Maximum steps of validation reached: " +
data.getName().toUri());
@@ -137,7 +137,7 @@
onKeyValidated,
onKeyValidationFailed,
3,
- stepCount + 1);
+ nSteps + 1);
nextSteps.push_back(nextStep);