From 7360681f07d701bbaf2a4f0ed59b225f3fe3f067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rimas=20Misevi=C4=8Dius?= Date: Fri, 13 Dec 2024 20:45:50 +0200 Subject: [PATCH] Fix static analysis errors --- include/upa/url.h | 4 ++-- src/url.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/upa/url.h b/include/upa/url.h index 5202089..6573973 100644 --- a/include/upa/url.h +++ b/include/upa/url.h @@ -51,8 +51,8 @@ namespace detail { class url_parser; // url_error what() values - extern const char kURLParseError[]; - extern const char kBaseURLParseError[]; + extern const char* const kURLParseError; + extern const char* const kBaseURLParseError; } // namespace detail /// @brief URL class diff --git a/src/url.cpp b/src/url.cpp index 43d4ebb..e3c4d05 100644 --- a/src/url.cpp +++ b/src/url.cpp @@ -10,8 +10,8 @@ namespace detail { // url_error exception what() values -const char kURLParseError[] = "URL parse error"; -const char kBaseURLParseError[] = "Base URL parse error"; +const char* const kURLParseError = "URL parse error"; +const char* const kBaseURLParseError = "Base URL parse error"; // Part start