From 64ac2e423e768868fac9f46b401c742c12878499 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 15 Aug 2019 06:25:21 -0400 Subject: [PATCH] hecl/FourCC: Make use of constexpr constructors where applicable --- hecl/lib/Project.cpp | 2 +- hecl/lib/ProjectPath.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hecl/lib/Project.cpp b/hecl/lib/Project.cpp index 9243c805e..8040ec7e9 100644 --- a/hecl/lib/Project.cpp +++ b/hecl/lib/Project.cpp @@ -17,7 +17,7 @@ namespace hecl::Database { logvisor::Module LogModule("hecl::Database"); -static const hecl::FourCC HECLfcc("HECL"); +constexpr hecl::FourCC HECLfcc("HECL"); /********************************************** * Project::ConfigFile diff --git a/hecl/lib/ProjectPath.cpp b/hecl/lib/ProjectPath.cpp index 802946ed6..8a13842eb 100644 --- a/hecl/lib/ProjectPath.cpp +++ b/hecl/lib/ProjectPath.cpp @@ -264,7 +264,7 @@ ProjectRootPath SearchForProject(SystemStringView path) { fclose(fp); if (readSize != 4) continue; - static const hecl::FourCC hecl("HECL"); + static constexpr hecl::FourCC hecl("HECL"); if (hecl::FourCC(magic) != hecl) continue; return ProjectRootPath(testPath);