2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 18:24:55 +00:00

string_view refactor

This commit is contained in:
Jack Andersen
2017-11-12 20:19:18 -10:00
parent 742ab2514f
commit f7ec7bdc0c
345 changed files with 907 additions and 921 deletions

View File

@@ -108,9 +108,9 @@ public:
}
return -1;
}
void SetUIOpts(const std::u16string& opt0,
const std::u16string& opt1,
const std::u16string& opt2)
void SetUIOpts(std::u16string_view opt0,
std::u16string_view opt1,
std::u16string_view opt2)
{
m_touchBar->_opts[0] = opt0.size() ? [NSString stringWithUTF8String:hecl::Char16ToUTF8(opt0).c_str()] : nil;
m_touchBar->_opts[1] = opt1.size() ? [NSString stringWithUTF8String:hecl::Char16ToUTF8(opt1).c_str()] : nil;