diff options
author | Ed Tanous <edtanous@google.com> | 2022-03-07 23:46:00 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-03-12 19:35:36 +0300 |
commit | f7725d79fa9b5fcffcc368008fa029ea1a16c4b9 (patch) | |
tree | 80c818f113a1ef6bee867985128b500dd197c201 /redfish-core/include/error_messages.hpp | |
parent | 55f79e6fe156505cdaddd521212a29b2a977193a (diff) | |
download | bmcweb-f7725d79fa9b5fcffcc368008fa029ea1a16c4b9.tar.xz |
Make code compile on clang again
There are a couple places we missed inline/static on our headers, and a
couple unused message entry callbacks for which their parameters were
incorrect (which clang caught). Fix all of them.
Tested: Code compiles on clang. No-op changes.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I12c9c04d3b773c4991c6cd92d0cfd42b348762d6
Diffstat (limited to 'redfish-core/include/error_messages.hpp')
-rw-r--r-- | redfish-core/include/error_messages.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/redfish-core/include/error_messages.hpp b/redfish-core/include/error_messages.hpp index 5e4fb5d3dd..6993a9d016 100644 --- a/redfish-core/include/error_messages.hpp +++ b/redfish-core/include/error_messages.hpp @@ -429,9 +429,10 @@ void propertyValueIncorrect(crow::Response& res, std::string_view arg1, * @param[in] arg1 Parameter of message that will replace %1 in its body. * * @returns Message ResourceCreationConflict formatted to JSON */ -nlohmann::json resourceCreationConflict(std::string_view arg1); +nlohmann::json resourceCreationConflict(const boost::urls::url_view& arg1); -void resourceCreationConflict(crow::Response& res, std::string_view arg1); +void resourceCreationConflict(crow::Response& res, + const boost::urls::url_view& arg1); /** * @brief Formats MaximumErrorsExceeded message into JSON @@ -631,9 +632,9 @@ void accountRemoved(crow::Response& res); * @param[in] arg1 Parameter of message that will replace %1 in its body. * * @returns Message AccessDenied formatted to JSON */ -nlohmann::json accessDenied(std::string_view arg1); +nlohmann::json accessDenied(const boost::urls::url_view& arg1); -void accessDenied(crow::Response& res, std::string_view arg1); +void accessDenied(crow::Response& res, const boost::urls::url_view& arg1); /** * @brief Formats QueryNotSupported message into JSON |