X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/c9b965e40ad1ad73542865fb65990a8b59e3131b..78b24692d45f090f846e4c327ca7fa2ee6d302eb:/JavaScript.hpp?ds=sidebyside diff --git a/JavaScript.hpp b/JavaScript.hpp index 949d54e..47a9618 100644 --- a/JavaScript.hpp +++ b/JavaScript.hpp @@ -184,6 +184,11 @@ class CYJSString { } public: + CYJSString() : + string_(NULL) + { + } + CYJSString(const CYJSString &rhs) : string_(CYCopyJSString(rhs.string_)) { @@ -207,6 +212,11 @@ class CYJSString { return *this; } + CYJSString &operator =(CYJSString &&rhs) { + std::swap(string_, rhs.string_); + return *this; + } + ~CYJSString() { Clear_(); }