From 3544088555f91f838093da4efbdb458749ca7970 Mon Sep 17 00:00:00 2001 From: Eduardo Almeida Date: Mon, 26 Sep 2022 10:19:25 +0000 Subject: [PATCH] core: Declare SYSTEM_PATH_SEP as constexpr --- src/core/model/system-path.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/model/system-path.cc b/src/core/model/system-path.cc index d4c0a38c5..ea4ac42ee 100644 --- a/src/core/model/system-path.cc +++ b/src/core/model/system-path.cc @@ -67,13 +67,12 @@ #endif /** - * \def SYSTEM_PATH_SEP * System-specific path separator used between directory names. */ #if defined(__WIN32__) -#define SYSTEM_PATH_SEP "\\" +constexpr auto SYSTEM_PATH_SEP = "\\"; #else -#define SYSTEM_PATH_SEP "/" +constexpr auto SYSTEM_PATH_SEP = "/"; #endif /**