Title: [174395] trunk/Source/WTF
Revision
174395
Author
ander...@apple.com
Date
2014-10-07 09:06:53 -0700 (Tue, 07 Oct 2014)

Log Message

Another build fix attempt.

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

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (174394 => 174395)


--- trunk/Source/WTF/ChangeLog	2014-10-07 15:49:07 UTC (rev 174394)
+++ trunk/Source/WTF/ChangeLog	2014-10-07 16:06:53 UTC (rev 174395)
@@ -1,5 +1,12 @@
 2014-10-07  Anders Carlsson  <ander...@apple.com>
 
+        Another build fix attempt.
+
+        * wtf/text/StringView.cpp:
+        (WTF::StringView::UnderlyingString::UnderlyingString):
+
+2014-10-07  Anders Carlsson  <ander...@apple.com>
+
         Try to fix the Windows build.
 
         * wtf/text/StringView.cpp:

Modified: trunk/Source/WTF/wtf/text/StringView.cpp (174394 => 174395)


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

Reply via email to