diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-17 16:21:14 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-17 16:21:14 +0200 |
commit | 8995b83bcbfbb68245f779b64e5517627c6cc6ea (patch) | |
tree | 17985605dab9263cc2444bd4d45f189e142cca7c /Source/WebKit/blackberry/Api/JavaScriptVariant.h | |
parent | b9c9652036d5e9f1e29c574f40bc73a35c81ace6 (diff) | |
download | qtwebkit-8995b83bcbfbb68245f779b64e5517627c6cc6ea.tar.gz |
Imported WebKit commit cf4f8fc6f19b0629f51860cb2d4b25e139d07e00 (http://svn.webkit.org/repository/webkit/trunk@131592)
New snapshot that includes the build fixes for Mac OS X 10.6 and earlier as well
as the previously cherry-picked changes
Diffstat (limited to 'Source/WebKit/blackberry/Api/JavaScriptVariant.h')
-rw-r--r-- | Source/WebKit/blackberry/Api/JavaScriptVariant.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Source/WebKit/blackberry/Api/JavaScriptVariant.h b/Source/WebKit/blackberry/Api/JavaScriptVariant.h index 7623a56b0..ef6a204e1 100644 --- a/Source/WebKit/blackberry/Api/JavaScriptVariant.h +++ b/Source/WebKit/blackberry/Api/JavaScriptVariant.h @@ -21,7 +21,7 @@ #include "BlackBerryGlobal.h" -#include <string> +#include <BlackBerryPlatformString.h> namespace BlackBerry { namespace WebKit { @@ -42,9 +42,8 @@ public: JavaScriptVariant(const JavaScriptVariant&); JavaScriptVariant(double); JavaScriptVariant(int); - JavaScriptVariant(const char*); - JavaScriptVariant(bool); - JavaScriptVariant(const std::string&); + explicit JavaScriptVariant(bool); + JavaScriptVariant(const BlackBerry::Platform::String&); ~JavaScriptVariant(); JavaScriptVariant& operator=(const JavaScriptVariant&); @@ -55,20 +54,22 @@ public: void setDouble(double); double doubleValue() const; - void setString(const char*); - char* stringValue() const; + void setString(const BlackBerry::Platform::String&); + const BlackBerry::Platform::String& stringValue() const; void setBoolean(bool); bool booleanValue() const; private: + JavaScriptVariant(const char*); DataType m_type; union { bool m_booleanValue; double m_doubleValue; - char* m_stringValue; }; + + BlackBerry::Platform::String m_stringValue; }; } |