Code Cleanup (#2191)

* constexpr const -> constexpr
* const char* -> std::string_view
This commit is contained in:
Alexander Bock
2022-07-25 15:57:45 +02:00
committed by GitHub
parent ea1f4bbf40
commit 9cc4c595a8
267 changed files with 1425 additions and 1565 deletions
+3 -5
View File
@@ -39,9 +39,7 @@
#include <optional>
namespace {
constexpr const char* _loggerCat = "WebGuiModule";
constexpr const char* DefaultAddress = "localhost";
constexpr const int DefaultPort = 4680;
constexpr std::string_view _loggerCat = "WebGuiModule";
constexpr openspace::properties::Property::PropertyInfo ServerProcessEnabledInfo = {
"ServerProcessEnabled",
@@ -121,8 +119,8 @@ WebGuiModule::WebGuiModule()
, _directories(DirectoriesInfo)
, _servedDirectories(ServedDirectoriesInfo)
, _defaultEndpoint(DefaultEndpointInfo)
, _port(PortInfo, DefaultPort)
, _address(AddressInfo, DefaultAddress)
, _port(PortInfo, 4680)
, _address(AddressInfo, "localhost")
, _webSocketInterface(WebSocketInterfaceInfo)
{
addProperty(_enabled);