From 55ab4264dc3f42a4588de0cf52e8f0f88e4fd90e Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Fri, 18 Aug 2017 07:44:42 +0200 Subject: 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 --- src/guiPathSelectMenu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/guiPathSelectMenu.cpp') 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(); } -- cgit v1.2.3