https://bugs.webkit.org/show_bug.cgi?id=143944
Reviewed by Andreas Kling.
Source/WebCore:
* editing/ios/DictationCommandIOS.h: Added now-needed include of PassOwnPtr.h.
Source/WTF:
* wtf/FilePrintStream.h: Removed unneeded include.
* wtf/HashTable.h: Fixed class template name in comment.
* wtf/HashTraits.h: Removed unneeded forward declaration.
* wtf/ListHashSet.h: Removed unneeded includes.
* wtf/ThreadingWin.cpp: Removed unneeded includes.
(WTF::wtfThreadEntryPoint): Changed code to use unique_ptr.
(WTF::createThreadInternal): Changed code to use make_unique and release.
* wtf/efl/RunLoopEfl.cpp: Removed unneeded includes.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@183063
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2015-04-21 Darin Adler <darin@apple.com>
+
+ Remove some stray uses of OwnPtr and PassOwnPtr in WTF (outside of the template definitions and traits)
+ https://bugs.webkit.org/show_bug.cgi?id=143944
+
+ Reviewed by Andreas Kling.
+
+ * wtf/FilePrintStream.h: Removed unneeded include.
+ * wtf/HashTable.h: Fixed class template name in comment.
+ * wtf/HashTraits.h: Removed unneeded forward declaration.
+ * wtf/ListHashSet.h: Removed unneeded includes.
+ * wtf/ThreadingWin.cpp: Removed unneeded includes.
+ (WTF::wtfThreadEntryPoint): Changed code to use unique_ptr.
+ (WTF::createThreadInternal): Changed code to use make_unique and release.
+ * wtf/efl/RunLoopEfl.cpp: Removed unneeded includes.
+
2015-04-19 Darin Adler <darin@apple.com>
Update RefPtr documentation and deprecation
#include <stdio.h>
#include <wtf/PrintStream.h>
-#include <wtf/OwnPtr.h>
namespace WTF {
public:
// All access to m_iterators should be guarded with m_mutex.
mutable const_iterator* m_iterators;
- // Use OwnPtr so HashTable can still be memmove'd or memcpy'ed.
+ // Use std::unique_ptr so HashTable can still be memmove'd or memcpy'ed.
mutable std::unique_ptr<std::mutex> m_mutex;
#endif
class String;
template<typename T> class OwnPtr;
-template<typename T> class PassOwnPtr;
template<typename T> struct HashTraits;
#define WTF_ListHashSet_h
#include <wtf/HashSet.h>
-#include <wtf/OwnPtr.h>
-#include <wtf/PassOwnPtr.h>
namespace WTF {
#include <wtf/CurrentTime.h>
#include <wtf/HashMap.h>
#include <wtf/MathExtras.h>
-#include <wtf/OwnPtr.h>
-#include <wtf/PassOwnPtr.h>
#include <wtf/RandomNumberSeed.h>
#include <wtf/WTFThreadData.h>
static unsigned __stdcall wtfThreadEntryPoint(void* param)
{
- OwnPtr<ThreadFunctionInvocation> invocation = adoptPtr(static_cast<ThreadFunctionInvocation*>(param));
+ std::unique_ptr<ThreadFunctionInvocation> invocation(static_cast<ThreadFunctionInvocation*>(param));
invocation->function(invocation->data);
#if !USE(PTHREADS) && OS(WINDOWS)
{
unsigned threadIdentifier = 0;
ThreadIdentifier threadID = 0;
- OwnPtr<ThreadFunctionInvocation> invocation = adoptPtr(new ThreadFunctionInvocation(entryPoint, data));
+ auto invocation = std::make_unique<ThreadFunctionInvocation>(entryPoint, data);
HANDLE threadHandle = reinterpret_cast<HANDLE>(_beginthreadex(0, 0, wtfThreadEntryPoint, invocation.get(), 0, &threadIdentifier));
if (!threadHandle) {
#if !HAVE(ERRNO_H)
}
// The thread will take ownership of invocation.
- ThreadFunctionInvocation* leakedInvocation = invocation.leakPtr();
+ ThreadFunctionInvocation* leakedInvocation = invocation.release();
UNUSED_PARAM(leakedInvocation);
threadID = static_cast<ThreadIdentifier>(threadIdentifier);
#include "RunLoop.h"
#include <Ecore.h>
-#include <wtf/OwnPtr.h>
-#include <wtf/PassOwnPtr.h>
static const int ecorePipeMessageSize = 1;
static const char wakupEcorePipeMessage[] = "W";
+2015-04-21 Darin Adler <darin@apple.com>
+
+ Remove some stray uses of OwnPtr and PassOwnPtr in WTF (outside of the template definitions and traits)
+ https://bugs.webkit.org/show_bug.cgi?id=143944
+
+ Reviewed by Andreas Kling.
+
+ * editing/ios/DictationCommandIOS.h: Added now-needed include of PassOwnPtr.h.
+
2015-04-20 Simon Fraser <simon.fraser@apple.com>
REGRESSION (r177494): -webkit-mask-image: with data URI fails on non-local files
#ifndef DictationCommandIOS_h
#define DictationCommandIOS_h
-#include "CompositeEditCommand.h"
-
+#import "CompositeEditCommand.h"
+#import <wtf/OwnPtr.h>
+#import <wtf/PassOwnPtr.h>
#import <wtf/RetainPtr.h>
typedef struct objc_object *id;