2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 11:07:44 +00:00

Runtime: Remove unnecessary c_str() calls

Makes for less noisy code and also gets rid of unnecessary std::strlen
calls in the case things are passed to a std::string_view parameter.
This commit is contained in:
Lioncash
2020-02-28 05:11:20 -05:00
parent 08604d770a
commit f1256faeb7
6 changed files with 26 additions and 25 deletions

View File

@@ -65,8 +65,8 @@ public:
std::array<CGuiTextPane*, 2> x0_panes{};
void SetPairText(std::u16string_view str);
};
static SGuiTextPair FindTextPanePair(CGuiFrame* frame, const char* name);
static void FindAndSetPairText(CGuiFrame* frame, const char* name, std::u16string_view str);
static SGuiTextPair FindTextPanePair(CGuiFrame* frame, std::string_view name);
static void FindAndSetPairText(CGuiFrame* frame, std::string_view name, std::u16string_view str);
struct SFileMenuOption {
CGuiWidget* x0_base;