Title: [131310] trunk/Tools
Revision
131310
Author
loi...@chromium.org
Date
2012-10-15 09:51:01 -0700 (Mon, 15 Oct 2012)

Log Message

Build fix for Mac debug build.

* TestWebKitAPI/Tests/WTF/MemoryInstrumentationTest.cpp:

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (131309 => 131310)


--- trunk/Tools/ChangeLog	2012-10-15 16:45:57 UTC (rev 131309)
+++ trunk/Tools/ChangeLog	2012-10-15 16:51:01 UTC (rev 131310)
@@ -1,3 +1,9 @@
+2012-10-15  Ilya Tikhonovsky  <loi...@chromium.org>
+
+        Build fix for Mac debug build.
+
+        * TestWebKitAPI/Tests/WTF/MemoryInstrumentationTest.cpp:
+
 2012-10-15  Balazs Kelemen  <kbal...@webkit.org>
 
         [Qt] Implement pixel snapshot generation in WTR

Modified: trunk/Tools/TestWebKitAPI/Tests/WTF/MemoryInstrumentationTest.cpp (131309 => 131310)


--- trunk/Tools/TestWebKitAPI/Tests/WTF/MemoryInstrumentationTest.cpp	2012-10-15 16:45:57 UTC (rev 131309)
+++ trunk/Tools/TestWebKitAPI/Tests/WTF/MemoryInstrumentationTest.cpp	2012-10-15 16:51:01 UTC (rev 131310)
@@ -472,7 +472,7 @@
     {
         InstrumentationTestHelper helper;
 
-        OwnPtr<InstrumentedTemplate<String> > value = adoptPtr(new InstrumentedTemplate<String>(""));
+        OwnPtr<InstrumentedTemplate<String> > value(adoptPtr(new InstrumentedTemplate<String>("")));
         InstrumentedOwner<InstrumentedTemplate<String>* > root(value.get());
         helper.addRootObject(root);
         EXPECT_EQ(sizeof(InstrumentedTemplate<String>) + sizeof(StringImpl), helper.reportedSizeForAllTypes());
@@ -482,7 +482,7 @@
     {
         InstrumentationTestHelper helper;
 
-        OwnPtr<InstrumentedTemplate<NotInstrumented> > value = adoptPtr(new InstrumentedTemplate<NotInstrumented>(""));
+        OwnPtr<InstrumentedTemplate<NotInstrumented> > value(adoptPtr(new InstrumentedTemplate<NotInstrumented>("")));
         InstrumentedOwner<InstrumentedTemplate<NotInstrumented>* > root(value.get());
         helper.addRootObject(root);
         EXPECT_EQ(sizeof(InstrumentedTemplate<NotInstrumented>), helper.reportedSizeForAllTypes());
@@ -634,7 +634,7 @@
     InstrumentationTestHelper helper;
 
     typedef HashMap<Instrumented*, Instrumented*> InstrumentedToInstrumentedMap;
-    OwnPtr<InstrumentedToInstrumentedMap> value = adoptPtr(new InstrumentedToInstrumentedMap());
+    OwnPtr<InstrumentedToInstrumentedMap> value(adoptPtr(new InstrumentedToInstrumentedMap()));
     Vector<OwnPtr<Instrumented> > valuesVector;
     size_t count = 10;
     for (size_t i = 0; i < count; ++i) {
@@ -673,7 +673,7 @@
     InstrumentationTestHelper helper;
 
     typedef HashMap<InstrumentedConvertibleToInt*, InstrumentedConvertibleToInt> TestMap;
-    OwnPtr<TestMap> value = adoptPtr(new TestMap());
+    OwnPtr<TestMap> value(adoptPtr(new TestMap()));
     Vector<OwnPtr<InstrumentedConvertibleToInt> > keysVector;
     Vector<OwnPtr<NotInstrumented> > valuesVector;
     size_t count = 10;
@@ -694,7 +694,7 @@
     InstrumentationTestHelper helper;
 
     typedef HashMap<TestEnum, String> EnumToStringMap;
-    OwnPtr<EnumToStringMap> value = adoptPtr(new EnumToStringMap());
+    OwnPtr<EnumToStringMap> value(adoptPtr(new EnumToStringMap()));
     size_t count = MY_ENUM_MAX;
     for (size_t i = ONE; i <= count; ++i)
         value->set(static_cast<TestEnum>(i), String::number(i));
@@ -709,7 +709,7 @@
     InstrumentationTestHelper helper;
 
     typedef HashCountedSet<Instrumented*> TestSet;
-    OwnPtr<TestSet> set = adoptPtr(new TestSet());
+    OwnPtr<TestSet> set(adoptPtr(new TestSet()));
     Vector<OwnPtr<Instrumented> > keysVector;
     size_t count = 10;
     for (size_t i = 0; i < count; ++i) {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to