Try to fix the Windows build.
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Oct 2014 15:47:15 +0000 (15:47 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Oct 2014 15:47:15 +0000 (15:47 +0000)
* wtf/text/StringView.cpp:
(WTF::StringView::UnderlyingString::UnderlyingString):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174393 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WTF/ChangeLog
Source/WTF/wtf/text/StringView.cpp

index ddbdf21..3ab7813 100644 (file)
@@ -1,3 +1,10 @@
+2014-10-07  Anders Carlsson  <andersca@apple.com>
+
+        Try to fix the Windows build.
+
+        * wtf/text/StringView.cpp:
+        (WTF::StringView::UnderlyingString::UnderlyingString):
+
 2014-10-06  Darin Adler  <darin@apple.com>
 
         Make StringView check the lifetime of the StringImpl it's created from
index 0b1aee9..f44fc57 100644 (file)
@@ -38,14 +38,15 @@ namespace WTF {
 // 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)
 {
 }