From b49dcdc48fd95aacb0f202842fe54753cc5cdcb7 Mon Sep 17 00:00:00 2001 From: Mark Mentovai Date: Tue, 14 Apr 2020 09:59:21 -0400 Subject: [PATCH] Mark static const class/struct members as constexpr cl/306269985 Change-Id: I3e6b7021d24260aa1abfad32d30ee0a9289fa3ff Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2148677 Reviewed-by: Robert Sesek Commit-Queue: Mark Mentovai --- client/settings.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/settings.cc b/client/settings.cc index db9dface..0aa525f1 100644 --- a/client/settings.cc +++ b/client/settings.cc @@ -85,8 +85,8 @@ void ScopedLockedFileHandleTraits::Free(FileHandle handle) { #endif // OS_FUCHSIA struct Settings::Data { - static const uint32_t kSettingsMagic = 'CPds'; - static const uint32_t kSettingsVersion = 1; + static constexpr uint32_t kSettingsMagic = 'CPds'; + static constexpr uint32_t kSettingsVersion = 1; enum Options : uint32_t { kUploadsEnabled = 1 << 0,