Title: [222346] trunk/Source/WTF
Revision
222346
Author
[email protected]
Date
2017-09-21 13:44:59 -0700 (Thu, 21 Sep 2017)

Log Message

Make StringBuilder movable
https://bugs.webkit.org/show_bug.cgi?id=177311

Reviewed by Chris Dumez.

* wtf/text/StringBuilder.h:
(WTF::StringBuilder::StringBuilder):

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (222345 => 222346)


--- trunk/Source/WTF/ChangeLog	2017-09-21 20:40:11 UTC (rev 222345)
+++ trunk/Source/WTF/ChangeLog	2017-09-21 20:44:59 UTC (rev 222346)
@@ -1,3 +1,13 @@
+2017-09-21  Alex Christensen  <[email protected]>
+
+        Make StringBuilder movable
+        https://bugs.webkit.org/show_bug.cgi?id=177311
+
+        Reviewed by Chris Dumez.
+
+        * wtf/text/StringBuilder.h:
+        (WTF::StringBuilder::StringBuilder):
+
 2017-09-20  Keith Miller  <[email protected]>
 
         JSC should use unified sources for platform specific files.

Modified: trunk/Source/WTF/wtf/text/StringBuilder.h (222345 => 222346)


--- trunk/Source/WTF/wtf/text/StringBuilder.h	2017-09-21 20:40:11 UTC (rev 222345)
+++ trunk/Source/WTF/wtf/text/StringBuilder.h	2017-09-21 20:44:59 UTC (rev 222346)
@@ -42,9 +42,11 @@
     StringBuilder()
         : m_length(0)
         , m_is8Bit(true)
-        , m_bufferCharacters8(0)
+        , m_bufferCharacters8(nullptr)
     {
     }
+    StringBuilder(StringBuilder&&) = default;
+    StringBuilder& operator=(StringBuilder&&) = default;
 
     WTF_EXPORT_PRIVATE void append(const UChar*, unsigned);
     WTF_EXPORT_PRIVATE void append(const LChar*, unsigned);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to