Title: [164942] trunk/Source/WTF
- Revision
- 164942
- Author
- [email protected]
- Date
- 2014-03-02 09:19:59 -0800 (Sun, 02 Mar 2014)
Log Message
Cut down use of OwnPtr within WTF itself
https://bugs.webkit.org/show_bug.cgi?id=129567
Reviewed by Sam Weinig.
* wtf/RefCounted.h: Removed OwnPtr includes.
* wtf/StreamBuffer.h: Removed OwnPtr includes and switched to use
std::make_unique and std::unique_ptr instead.
* wtf/Threading.cpp: Removed OwnPtr includes.
* wtf/ThreadingPthreads.cpp: Ditto.
* wtf/Vector.h: Ditto.
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (164941 => 164942)
--- trunk/Source/WTF/ChangeLog 2014-03-02 15:36:53 UTC (rev 164941)
+++ trunk/Source/WTF/ChangeLog 2014-03-02 17:19:59 UTC (rev 164942)
@@ -1,3 +1,19 @@
+2014-03-02 Darin Adler <[email protected]>
+
+ Cut down use of OwnPtr within WTF itself
+ https://bugs.webkit.org/show_bug.cgi?id=129567
+
+ Reviewed by Sam Weinig.
+
+ * wtf/RefCounted.h: Removed OwnPtr includes.
+
+ * wtf/StreamBuffer.h: Removed OwnPtr includes and switched to use
+ std::make_unique and std::unique_ptr instead.
+
+ * wtf/Threading.cpp: Removed OwnPtr includes.
+ * wtf/ThreadingPthreads.cpp: Ditto.
+ * wtf/Vector.h: Ditto.
+
2014-02-26 Gavin Barraclough <[email protected]>
FastMalloc should use vm_page_shift intead of PAGE_SHIFT.
Modified: trunk/Source/WTF/wtf/RefCounted.h (164941 => 164942)
--- trunk/Source/WTF/wtf/RefCounted.h 2014-03-02 15:36:53 UTC (rev 164941)
+++ trunk/Source/WTF/wtf/RefCounted.h 2014-03-02 17:19:59 UTC (rev 164942)
@@ -24,7 +24,6 @@
#include <wtf/Assertions.h>
#include <wtf/FastMalloc.h>
#include <wtf/Noncopyable.h>
-#include <wtf/OwnPtr.h>
namespace WTF {
Modified: trunk/Source/WTF/wtf/StreamBuffer.h (164941 => 164942)
--- trunk/Source/WTF/wtf/StreamBuffer.h 2014-03-02 15:36:53 UTC (rev 164941)
+++ trunk/Source/WTF/wtf/StreamBuffer.h 2014-03-02 17:19:59 UTC (rev 164942)
@@ -32,8 +32,6 @@
#define WTF_StreamBuffer_h
#include <wtf/Deque.h>
-#include <wtf/OwnPtr.h>
-#include <wtf/PassOwnPtr.h>
namespace WTF {
@@ -61,7 +59,7 @@
m_size += size;
while (size) {
if (!m_buffer.size() || m_buffer.last()->size() == BlockSize)
- m_buffer.append(adoptPtr(new Block));
+ m_buffer.append(std::make_unique<Block>());
size_t appendSize = std::min(BlockSize - m_buffer.last()->size(), size);
m_buffer.last()->append(data, appendSize);
data += appendSize;
@@ -108,7 +106,7 @@
private:
size_t m_size;
size_t m_readOffset;
- Deque<OwnPtr<Block>> m_buffer;
+ Deque<std::unique_ptr<Block>> m_buffer;
};
} // namespace WTF
Modified: trunk/Source/WTF/wtf/Threading.cpp (164941 => 164942)
--- trunk/Source/WTF/wtf/Threading.cpp 2014-03-02 15:36:53 UTC (rev 164941)
+++ trunk/Source/WTF/wtf/Threading.cpp 2014-03-02 17:19:59 UTC (rev 164942)
@@ -25,8 +25,6 @@
#include "config.h"
#include "Threading.h"
-#include <wtf/OwnPtr.h>
-#include <wtf/PassOwnPtr.h>
#include <string.h>
Modified: trunk/Source/WTF/wtf/ThreadingPthreads.cpp (164941 => 164942)
--- trunk/Source/WTF/wtf/ThreadingPthreads.cpp 2014-03-02 15:36:53 UTC (rev 164941)
+++ trunk/Source/WTF/wtf/ThreadingPthreads.cpp 2014-03-02 17:19:59 UTC (rev 164942)
@@ -44,8 +44,6 @@
#include "ThreadFunctionInvocation.h"
#include "ThreadIdentifierDataPthreads.h"
#include "ThreadSpecific.h"
-#include <wtf/OwnPtr.h>
-#include <wtf/PassOwnPtr.h>
#include <wtf/WTFThreadData.h>
#include <errno.h>
Modified: trunk/Source/WTF/wtf/Vector.h (164941 => 164942)
--- trunk/Source/WTF/wtf/Vector.h 2014-03-02 15:36:53 UTC (rev 164941)
+++ trunk/Source/WTF/wtf/Vector.h 2014-03-02 17:19:59 UTC (rev 164942)
@@ -30,7 +30,6 @@
#include <wtf/FastMalloc.h>
#include <wtf/MallocPtr.h>
#include <wtf/Noncopyable.h>
-#include <wtf/OwnPtr.h>
#include <wtf/StdLibExtras.h>
#include <wtf/ValueCheck.h>
#include <wtf/VectorTraits.h>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes