MCPcopy Create free account
hub / github.com/MyGUI/mygui / upFolder

Method upFolder

UnitTests/UnitTest_GraphView/OpenSaveFileDialog.cpp:133–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131 }
132
133 void OpenSaveFileDialog::upFolder()
134 {
135 size_t index = mCurrentFolder.find_last_of(L"\\/");
136 if (index != std::string::npos)
137 {
138 mCurrentFolder = mCurrentFolder.substr(0, index);
139 }
140 update();
141 }
142
143 void OpenSaveFileDialog::setCurrentFolder(const MyGUI::UString& _folder)
144 {

Callers

nothing calls this directly

Calls 2

find_last_ofMethod · 0.80
substrMethod · 0.80

Tested by

no test coverage detected