mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-20 11:35:21 +02:00
Modernize various files
* range-based for loops * emplace_back instead of push_back * code style * C++ headers instead of C headers * Default operators * empty stl function
This commit is contained in:
@@ -67,7 +67,7 @@ void GUIFileSelectMenu::drawMenu()
|
||||
|
||||
void GUIFileSelectMenu::acceptInput()
|
||||
{
|
||||
if ((m_text_dst != 0) && (this->m_formname != "")) {
|
||||
if (m_text_dst && !m_formname.empty()) {
|
||||
StringMap fields;
|
||||
if (m_accepted) {
|
||||
std::string path;
|
||||
@@ -82,7 +82,7 @@ void GUIFileSelectMenu::acceptInput()
|
||||
} else {
|
||||
fields[m_formname + "_canceled"] = m_formname;
|
||||
}
|
||||
this->m_text_dst->gotText(fields);
|
||||
m_text_dst->gotText(fields);
|
||||
}
|
||||
quitMenu();
|
||||
}
|
||||
|
Reference in New Issue
Block a user