From 46b1a4dd667e7c516affe1d5b310a8dce32c7439 Mon Sep 17 00:00:00 2001 From: kunitoki Date: Sun, 25 Aug 2024 09:06:17 +0200 Subject: [PATCH] Fix windows compilation error --- modules/juce_core/native/juce_SystemStats_windows.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/juce_core/native/juce_SystemStats_windows.cpp b/modules/juce_core/native/juce_SystemStats_windows.cpp index be417c0f..f643c7ae 100644 --- a/modules/juce_core/native/juce_SystemStats_windows.cpp +++ b/modules/juce_core/native/juce_SystemStats_windows.cpp @@ -817,15 +817,15 @@ String SystemStats::getUniqueDeviceID() const auto stringFromOffset = [&content, &strings] (size_t byteOffset) -> String { if (! isPositiveAndBelow (byteOffset, content.size())) - return std::string {}; + return {}; const auto index = std::to_integer (content[byteOffset]); if (index <= 0 || strings.size() < index) - return std::string {}; + return {}; const auto view = strings[index - 1]; - return std::string { view }; + return String::fromUTF8 (view.data(), (int) view.size()); }; enum