projects
/
oweals
/
minetest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Android build, but there is a remaining linking issue in guiConfirmRegistration
[oweals/minetest.git]
/
src
/
quicktune_shortcutter.h
diff --git
a/src/quicktune_shortcutter.h
b/src/quicktune_shortcutter.h
index 16bcc07e89b04bf2ddffb74f888ceed06b8820fd..70a7b70b33212a329b0b759c5a29acba0fadfb1a 100644
(file)
--- a/
src/quicktune_shortcutter.h
+++ b/
src/quicktune_shortcutter.h
@@
-17,8
+17,7
@@
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef QVT_SHORTCUTTER_HEADER
-#define QVT_SHORTCUTTER_HEADER
+#pragma once
#include "quicktune.h"
#include "quicktune.h"
@@
-29,11
+28,16
@@
private:
u32 m_selected_i;
std::string m_message;
public:
u32 m_selected_i;
std::string m_message;
public:
+ bool hasMessage() const
+ {
+ return !m_message.empty();
+ }
+
std::string getMessage()
{
std::string s = m_message;
m_message = "";
std::string getMessage()
{
std::string s = m_message;
m_message = "";
- if
(s != ""
)
+ if
(!s.empty()
)
return std::string("[quicktune] ") + s;
return "";
}
return std::string("[quicktune] ") + s;
return "";
}
@@
-78,6
+82,3
@@
public:
setQuicktuneValue(getSelectedName(), val);
}
};
setQuicktuneValue(getSelectedName(), val);
}
};
-
-#endif
-