summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess/API/cpp/efl/WKEinaSharedString.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-09-11 19:54:20 +0200
committerSimon Hausmann <simon.hausmann@nokia.com>2012-09-11 19:54:20 +0200
commit88a04ac016f57c2d78e714682445dff2e7db4ade (patch)
treea48ca81ee3b29953121308168db22532d5b57fe2 /Source/WebKit2/UIProcess/API/cpp/efl/WKEinaSharedString.cpp
parent284837daa07b29d6a63a748544a90b1f5842ac5c (diff)
downloadqtwebkit-88a04ac016f57c2d78e714682445dff2e7db4ade.tar.gz
Imported WebKit commit 42d95198c30c2d1a94a5081181aad0b2be7c316c (http://svn.webkit.org/repository/webkit/trunk@128206)
This includes the rewrite of the configure part of the build system which should fix the QtQuick2 detection and allow for further simplifications in the future
Diffstat (limited to 'Source/WebKit2/UIProcess/API/cpp/efl/WKEinaSharedString.cpp')
-rw-r--r--Source/WebKit2/UIProcess/API/cpp/efl/WKEinaSharedString.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/WebKit2/UIProcess/API/cpp/efl/WKEinaSharedString.cpp b/Source/WebKit2/UIProcess/API/cpp/efl/WKEinaSharedString.cpp
index ea43df167..d31bfd40e 100644
--- a/Source/WebKit2/UIProcess/API/cpp/efl/WKEinaSharedString.cpp
+++ b/Source/WebKit2/UIProcess/API/cpp/efl/WKEinaSharedString.cpp
@@ -105,3 +105,10 @@ bool WKEinaSharedString::operator==(const char* str) const
{
return (!str || !m_string) ? (str == m_string) : !strcmp(m_string, str);
}
+
+WKEinaSharedString WKEinaSharedString::adopt(Eina_Stringshare* string)
+{
+ WKEinaSharedString sharedString;
+ sharedString.m_string = static_cast<const char*>(string);
+ return sharedString;
+}