/*
-Minetest-c55
-Copyright (C) 2012 celeron55, Perttu Ahola <celeron55@gmail.com>
+Minetest
+Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef QVT_SHORTCUTTER_HEADER
-#define QVT_SHORTCUTTER_HEADER
+#pragma once
#include "quicktune.h"
-#include "utility.h"
class QuicktuneShortcutter
{
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 = "";
- if(s != "")
+ if (!s.empty())
return std::string("[quicktune] ") + s;
return "";
}
setQuicktuneValue(getSelectedName(), val);
}
};
-
-#endif
-