X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/c9b965e40ad1ad73542865fb65990a8b59e3131b..447b698cea96010d0850e056348ef6cd085b96d9:/JavaScript.hpp 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_(); }