From 9f419314b646bf57dfc3fcbb509b3be2c974e3fd Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 17 Oct 2025 14:33:16 +0800 Subject: Remove String on Linux. --- include/cru/ui/ThemeManager.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/cru/ui/ThemeManager.h') diff --git a/include/cru/ui/ThemeManager.h b/include/cru/ui/ThemeManager.h index 10d90060..5e24a159 100644 --- a/include/cru/ui/ThemeManager.h +++ b/include/cru/ui/ThemeManager.h @@ -1,7 +1,6 @@ #pragma once #include "Base.h" #include "cru/base/Event.h" -#include "cru/base/Format.h" #include "cru/ui/ThemeResourceDictionary.h" #include @@ -27,7 +26,7 @@ class CRU_UI_API ThemeManager : public Object { std::unique_ptr theme_resource_dictionary); template - T GetResource(std::string_view key) { + T GetResource(const std::string_view& key) { for (const auto& resource_dictionary : theme_resource_dictionary_list_) { try { return resource_dictionary->GetResource(key); -- cgit v1.2.3