summaryrefslogtreecommitdiff
path: root/src/guiPathSelectMenu.cpp
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2017-08-18 07:44:42 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2017-08-18 07:44:52 +0200
commit55ab4264dc3f42a4588de0cf52e8f0f88e4fd90e (patch)
treea7b06056f0905327351131de60678f41a1283826 /src/guiPathSelectMenu.cpp
parent13e995b811e80dc48c0769274d3dca3a2221b843 (diff)
downloadminetest-55ab4264dc3f42a4588de0cf52e8f0f88e4fd90e.tar.gz
minetest-55ab4264dc3f42a4588de0cf52e8f0f88e4fd90e.tar.bz2
minetest-55ab4264dc3f42a4588de0cf52e8f0f88e4fd90e.zip
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
Diffstat (limited to 'src/guiPathSelectMenu.cpp')
-rw-r--r--src/guiPathSelectMenu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/guiPathSelectMenu.cpp b/src/guiPathSelectMenu.cpp
index e56a6224c..b999f0a68 100644
--- a/src/guiPathSelectMenu.cpp
+++ b/src/guiPathSelectMenu.cpp
@@ -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();
}