Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 99a5a45

Browse files
committed
Use string conversions functions in fml/platform/win/wstring_conversion.h
1 parent eeaf0b5 commit 99a5a45

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

shell/platform/common/flutter_platform_node_delegate.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
#include "flutter_platform_node_delegate.h"
66

7-
#include <codecvt>
87
#include <utility>
98

9+
#include "flutter/fml/platform/win/wstring_conversion.h"
1010
#include "flutter/shell/platform/common/accessibility_bridge.h"
1111
#include "flutter/third_party/accessibility/ax/ax_action_data.h"
1212
#include "flutter/third_party/accessibility/ax/ax_tree_manager_map.h"
@@ -63,9 +63,9 @@ const ui::AXNodeData& FlutterPlatformNodeDelegate::GetData() const {
6363
}
6464

6565
std::u16string FlutterPlatformNodeDelegate::GetAuthorUniqueId() const {
66-
std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t> convert;
67-
return convert.from_bytes(GetData().GetStringAttribute(
68-
ax::mojom::StringAttribute::kAuthorUniqueId));
66+
return fml::WideStringToUtf16(
67+
fml::Utf8ToWideString(GetData().GetStringAttribute(
68+
ax::mojom::StringAttribute::kAuthorUniqueId)));
6969
}
7070

7171
gfx::NativeViewAccessible FlutterPlatformNodeDelegate::GetParent() {

0 commit comments

Comments
 (0)