[core] Use constexpr when possible

Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
x7z4w
2025-10-24 08:36:38 +00:00
parent 936e05283c
commit 42f059f8f7
90 changed files with 258 additions and 259 deletions

View File

@@ -29,9 +29,9 @@ using std::string;
namespace
{
char const kBitsExt[] = ".bftsegbits";
char const kNodesExt[] = ".bftsegnodes";
char const kOffsetsExt[] = ".offsets";
char constexpr kBitsExt[] = ".bftsegbits";
char constexpr kNodesExt[] = ".bftsegnodes";
char constexpr kOffsetsExt[] = ".offsets";
string GetAdditionalWorldScope()
{

View File

@@ -14,8 +14,8 @@ namespace downloader
std::optional<MetaConfig> ParseMetaConfig(std::string const & jsonStr)
{
char const kSettings[] = "settings";
char const kServers[] = "servers";
char constexpr kSettings[] = "settings";
char constexpr kServers[] = "servers";
MetaConfig outMetaConfig;
try