summaryrefslogtreecommitdiffstats
path: root/src/lib/config
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2023-09-05 17:22:55 +0200
committerRazvan Becheriu <razvan@isc.org>2023-09-15 10:50:24 +0200
commit14b2cf63aea4cb241023a4371ae7e90e0d4f3091 (patch)
treece8ed6a4b180b3eaa3e8fc7a116961b0b01d7a71 /src/lib/config
parent[#2980] addressed comments (diff)
downloadkea-14b2cf63aea4cb241023a4371ae7e90e0d4f3091.tar.xz
kea-14b2cf63aea4cb241023a4371ae7e90e0d4f3091.zip
[#2967] format file
Diffstat (limited to 'src/lib/config')
-rw-r--r--src/lib/config/cmds_impl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/config/cmds_impl.h b/src/lib/config/cmds_impl.h
index f90cee4b28..7285559f9f 100644
--- a/src/lib/config/cmds_impl.h
+++ b/src/lib/config/cmds_impl.h
@@ -42,7 +42,7 @@ protected:
/// @param text string text to be used as the response description
void setSuccessResponse(hooks::CalloutHandle& handle, const std::string& text) {
data::ConstElementPtr response = createAnswer(CONTROL_RESULT_SUCCESS, text);
- setResponse (handle, response);
+ setResponse(handle, response);
}
/// @brief Set the callout argument "response" to indicate an error
@@ -52,9 +52,9 @@ protected:
/// @param status numeric value to use as the response result, defaults to
/// CONTROL_RESULT_ERROR
void setErrorResponse(hooks::CalloutHandle& handle, const std::string& text,
- int status=CONTROL_RESULT_ERROR) {
+ int status = CONTROL_RESULT_ERROR) {
data::ConstElementPtr response = createAnswer(status, text);
- setResponse (handle, response);
+ setResponse(handle, response);
}
/// @brief Set the callout argument "response" to the given response
@@ -62,7 +62,7 @@ protected:
/// @param handle Callout context handle in which to set the "response" argument
/// @param response ElementPtr to the result to use as the response
void setResponse(hooks::CalloutHandle& handle, data::ConstElementPtr& response) {
- handle.setArgument ("response", response);
+ handle.setArgument("response", response);
}
/// @brief Stores the command name extracted by a call to extractCommand