[ion/shared] Remove contexpr array definition in header

Change-Id: I620e977b000ee53c3db97510e666dfda30f4db30
This commit is contained in:
Hugo Saint-Vignes
2020-10-29 15:31:13 +01:00
committed by Émilie Feral
parent 8dc6391e92
commit d5e810f2b8
2 changed files with 2 additions and 3 deletions

View File

@@ -7,12 +7,11 @@ namespace Events {
class EventData {
public:
static constexpr EventData Undefined() { return EventData(nullptr); }
static constexpr EventData Textless() { return EventData(k_textless); }
static constexpr EventData Textless() { return EventData(""); }
static constexpr EventData Text(const char * text) { return EventData(text); }
bool isDefined() const { return (m_data != nullptr); }
const char * text() const;
private:
static constexpr const char * k_textless = "";
constexpr EventData(const char * data) : m_data(data) {}
const char * m_data;
};