Title: [174393] trunk/Source/WTF
Revision
174393
Author
ander...@apple.com
Date
2014-10-07 08:47:15 -0700 (Tue, 07 Oct 2014)

Log Message

Try to fix the Windows build.

* wtf/text/StringView.cpp:
(WTF::StringView::UnderlyingString::UnderlyingString):

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (174392 => 174393)


--- trunk/Source/WTF/ChangeLog	2014-10-07 07:42:40 UTC (rev 174392)
+++ trunk/Source/WTF/ChangeLog	2014-10-07 15:47:15 UTC (rev 174393)
@@ -1,3 +1,10 @@
+2014-10-07  Anders Carlsson  <ander...@apple.com>
+
+        Try to fix the Windows build.
+
+        * wtf/text/StringView.cpp:
+        (WTF::StringView::UnderlyingString::UnderlyingString):
+
 2014-10-06  Darin Adler  <da...@apple.com>
 
         Make StringView check the lifetime of the StringImpl it's created from

Modified: trunk/Source/WTF/wtf/text/StringView.cpp (174392 => 174393)


--- trunk/Source/WTF/wtf/text/StringView.cpp	2014-10-07 07:42:40 UTC (rev 174392)
+++ trunk/Source/WTF/wtf/text/StringView.cpp	2014-10-07 15:47:15 UTC (rev 174393)
@@ -38,14 +38,15 @@
 // Manage reference count manually so UnderlyingString does not need to be defined in the header.
 
 struct StringView::UnderlyingString {
-    std::atomic_uint refCount { 1 };
+    std::atomic_uint refCount;
     bool isValid { true };
     const StringImpl& string;
     explicit UnderlyingString(const StringImpl&);
 };
 
 StringView::UnderlyingString::UnderlyingString(const StringImpl& string)
-    : string(string)
+    : refCount(1)
+    , string(string)
 {
 }
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to