Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/Component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,13 @@ const WCHAR_T *Component::GetPropName(long num, long lang_alias) {
}

WCHAR_T *result = nullptr;
#ifdef _WINDOWS
storeVariable(std::u16string(reinterpret_cast<const char16_t *>(name->c_str())), &result);

#else
std::u16string u16name(name->begin(), name->end());
storeVariable(u16name, &result);
#endif

return result;
}

Expand Down Expand Up @@ -183,7 +188,12 @@ const WCHAR_T *Component::GetMethodName(const long num, const long lang_alias) {
}

WCHAR_T *result = nullptr;
#ifdef _WINDOWS
storeVariable(std::u16string(reinterpret_cast<const char16_t *>(name->c_str())), &result);
#else
std::u16string u16name(name->begin(), name->end());
storeVariable(u16name, &result);
#endif

return result;

Expand Down