Index: Source/platform/weborigin/KURL.cpp |
diff --git a/Source/platform/weborigin/KURL.cpp b/Source/platform/weborigin/KURL.cpp |
index 7189f73fac8d9cdac03f98bcabbc9d52cfe82b29..034672c3aa8e6828fe70dc14bec63b5ace335895 100644 |
--- a/Source/platform/weborigin/KURL.cpp |
+++ b/Source/platform/weborigin/KURL.cpp |
@@ -255,6 +255,27 @@ KURL& KURL::operator=(const KURL& other) |
return *this; |
} |
+#if COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES) |
+KURL::KURL(KURL&& other) |
+ : m_isValid(other.m_isValid) |
+ , m_protocolIsInHTTPFamily(other.m_protocolIsInHTTPFamily) |
+ , m_parsed(other.m_parsed) |
+ , m_string(static_cast<String&&>(other.m_string)) |
tkent
2014/05/27 00:19:16
Would you add FIXME about std::move please?
Inactive
2014/05/27 00:30:00
Done.
|
+ , m_innerURL(other.m_innerURL.release()) |
+{ |
+} |
+ |
+KURL& KURL::operator=(KURL&& other) |
+{ |
+ m_isValid = other.m_isValid; |
+ m_protocolIsInHTTPFamily = other.m_protocolIsInHTTPFamily; |
+ m_parsed = other.m_parsed; |
+ m_string = static_cast<String&&>(other.m_string); |
tkent
2014/05/27 00:19:16
Ditto.
Inactive
2014/05/27 00:30:00
Done.
|
+ m_innerURL = other.m_innerURL.release(); |
+ return *this; |
+} |
+#endif |
+ |
KURL KURL::copy() const |
{ |
KURL result; |