src: Improving consistency and correcting code style
As of this commit, all data structures can be directly constructed from
wire format.
This commit excludes full correction of code style in security/ and
tools/ndnsec*, which will be part of a different commit.
Change-Id: I121ac1f81948bc7468990df52cdefeb2988d91a1
Refs: #1403
diff --git a/src/security/validation-request.hpp b/src/security/validation-request.hpp
index f64082b..0bc0d59 100644
--- a/src/security/validation-request.hpp
+++ b/src/security/validation-request.hpp
@@ -16,7 +16,7 @@
* An OnVerified function object is used to pass a callback to report a successful Interest validation.
*/
typedef function< void (const shared_ptr<const Interest>&) > OnInterestValidated;
-
+
/**
* An OnVerifyFailed function object is used to pass a callback to report a failed Interest validation.
*/
@@ -26,7 +26,7 @@
* An OnVerified function object is used to pass a callback to report a successful Data validation.
*/
typedef function< void (const shared_ptr<const Data>&) > OnDataValidated;
-
+
/**
* An OnVerifyFailed function object is used to pass a callback to report a failed Data validation.
*/
@@ -35,9 +35,9 @@
class ValidationRequest {
public:
- ValidationRequest(const Interest &interest,
- const OnDataValidated &onValidated,
- const OnDataValidationFailed &onDataValidated,
+ ValidationRequest(const Interest& interest,
+ const OnDataValidated& onValidated,
+ const OnDataValidationFailed& onDataValidated,
int retry, int stepCount)
: m_interest(interest)
, m_onValidated(onValidated)
@@ -45,7 +45,7 @@
, m_retry(retry)
, m_stepCount(stepCount)
{}
-
+
virtual
~ValidationRequest() {}