diff options
author | Ed Tanous <ed@tanous.net> | 2020-10-03 18:06:26 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2020-10-23 18:03:17 +0300 |
commit | 04e438cbad66838724d78ce12f28aff1fb892a63 (patch) | |
tree | 8d8c42a8b3d3e9f8e10c108dd6273e8185d04530 /redfish-core | |
parent | dc511aa73001a593a16dbcdaa5d53f320e4c7818 (diff) | |
download | bmcweb-04e438cbad66838724d78ce12f28aff1fb892a63.tar.xz |
fix include names
cppcheck isn't smart enough to recognize these are c++ headers, not c
headers. Considering we're already inconsistent about our naming, it's
easier to just be consistent, and move the last few files to use .hpp
instead of .h.
Tested:
Code builds, no changes.
Signed-off-by: Ed Tanous <ed@tanous.net>
Change-Id: Ic348d695f8527fa4a0ded53f433e1558c319db40
Diffstat (limited to 'redfish-core')
-rw-r--r-- | redfish-core/include/error_messages.hpp | 2 | ||||
-rw-r--r-- | redfish-core/include/node.hpp | 5 | ||||
-rw-r--r-- | redfish-core/include/privileges.hpp | 3 | ||||
-rw-r--r-- | redfish-core/include/utils/json_utils.hpp | 5 | ||||
-rw-r--r-- | redfish-core/src/error_messages.cpp | 3 |
5 files changed, 7 insertions, 11 deletions
diff --git a/redfish-core/include/error_messages.hpp b/redfish-core/include/error_messages.hpp index 0b9fad1ab0..7dfdc80010 100644 --- a/redfish-core/include/error_messages.hpp +++ b/redfish-core/include/error_messages.hpp @@ -14,7 +14,7 @@ // limitations under the License. */ #pragma once -#include "http_response.h" +#include "http_response.hpp" #include <nlohmann/json.hpp> diff --git a/redfish-core/include/node.hpp b/redfish-core/include/node.hpp index 9863794e62..47c5cc6a1e 100644 --- a/redfish-core/include/node.hpp +++ b/redfish-core/include/node.hpp @@ -15,9 +15,8 @@ */ #pragma once -#include "http_request.h" -#include "http_response.h" - +#include "http_request.hpp" +#include "http_response.hpp" #include "privileges.hpp" #include <error_messages.hpp> diff --git a/redfish-core/include/privileges.hpp b/redfish-core/include/privileges.hpp index c3a88d541a..e9a24f7a90 100644 --- a/redfish-core/include/privileges.hpp +++ b/redfish-core/include/privileges.hpp @@ -15,10 +15,9 @@ */ #pragma once -#include <logging.h> - #include <boost/beast/http/verb.hpp> #include <boost/container/flat_map.hpp> +#include <logging.hpp> #include <array> #include <bitset> diff --git a/redfish-core/include/utils/json_utils.hpp b/redfish-core/include/utils/json_utils.hpp index 7bd8bb874c..c355000b58 100644 --- a/redfish-core/include/utils/json_utils.hpp +++ b/redfish-core/include/utils/json_utils.hpp @@ -15,10 +15,9 @@ */ #pragma once -#include <http_request.h> -#include <http_response.h> - #include <error_messages.hpp> +#include <http_request.hpp> +#include <http_response.hpp> #include <nlohmann/json.hpp> #include <bitset> diff --git a/redfish-core/src/error_messages.cpp b/redfish-core/src/error_messages.cpp index 21892ee200..f10a4a15f5 100644 --- a/redfish-core/src/error_messages.cpp +++ b/redfish-core/src/error_messages.cpp @@ -13,9 +13,8 @@ // See the License for the specific language governing permissions and // limitations under the License. */ -#include <logging.h> - #include <error_messages.hpp> +#include <logging.hpp> namespace redfish { |