summaryrefslogtreecommitdiff
path: root/src/script/api/script_event_types.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/api/script_event_types.hpp')
-rw-r--r--src/script/api/script_event_types.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/script/api/script_event_types.hpp b/src/script/api/script_event_types.hpp
index b6ed7bfbc..3ed6c5b10 100644
--- a/src/script/api/script_event_types.hpp
+++ b/src/script/api/script_event_types.hpp
@@ -837,8 +837,7 @@ public:
/**
* @param json The JSON string which got sent.
*/
- ScriptEventAdminPort(const char *json);
- ~ScriptEventAdminPort();
+ ScriptEventAdminPort(const std::string &json);
/**
* Convert an ScriptEvent to the real instance.
@@ -853,7 +852,7 @@ public:
SQInteger GetObject(HSQUIRRELVM vm);
private:
- char *json; ///< The JSON string.
+ std::string json; ///< The JSON string.
/**
* Read a table from a JSON string.