From 6cbb30e49ee91a7ee238866224def31c7893958e Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Wed, 7 Aug 2024 11:30:07 -0400 Subject: [PATCH] cefclient: mac: Fix "undefined symbol" link error (see #3499) --- tests/cefclient/browser/client_handler_osr.h | 2 +- tests/cefclient/browser/client_handler_std.h | 2 +- tests/cefclient/browser/default_client_handler.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/cefclient/browser/client_handler_osr.h b/tests/cefclient/browser/client_handler_osr.h index a8976873f..c0c29ba24 100644 --- a/tests/cefclient/browser/client_handler_osr.h +++ b/tests/cefclient/browser/client_handler_osr.h @@ -145,7 +145,7 @@ class ClientHandlerOsr : public ClientHandler, private: // Used to determine the object type. virtual const void* GetTypeKey() const override { return &kTypeKey; } - static const int kTypeKey = 0; + static constexpr int kTypeKey = 0; // Only accessed on the UI thread. OsrDelegate* osr_delegate_; diff --git a/tests/cefclient/browser/client_handler_std.h b/tests/cefclient/browser/client_handler_std.h index f589824b3..016c69978 100644 --- a/tests/cefclient/browser/client_handler_std.h +++ b/tests/cefclient/browser/client_handler_std.h @@ -25,7 +25,7 @@ class ClientHandlerStd : public ClientHandler { private: // Used to determine the object type. virtual const void* GetTypeKey() const override { return &kTypeKey; } - static const int kTypeKey = 0; + static constexpr int kTypeKey = 0; // Include the default reference counting implementation. IMPLEMENT_REFCOUNTING(ClientHandlerStd); diff --git a/tests/cefclient/browser/default_client_handler.h b/tests/cefclient/browser/default_client_handler.h index 08caa9a2d..7fed6fea7 100644 --- a/tests/cefclient/browser/default_client_handler.h +++ b/tests/cefclient/browser/default_client_handler.h @@ -24,7 +24,7 @@ class DefaultClientHandler : public BaseClientHandler { private: // Used to determine the object type. virtual const void* GetTypeKey() const override { return &kTypeKey; } - static const int kTypeKey = 0; + static constexpr int kTypeKey = 0; IMPLEMENT_REFCOUNTING(DefaultClientHandler); DISALLOW_COPY_AND_ASSIGN(DefaultClientHandler);