diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/testing/MallocStatistics.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/testing/MallocStatistics.h')
-rw-r--r-- | Source/WebCore/testing/MallocStatistics.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/WebCore/testing/MallocStatistics.h b/Source/WebCore/testing/MallocStatistics.h index 3f07bbd9f..f08c4e212 100644 --- a/Source/WebCore/testing/MallocStatistics.h +++ b/Source/WebCore/testing/MallocStatistics.h @@ -23,18 +23,16 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef MallocStatistics_h -#define MallocStatistics_h +#pragma once #include <wtf/FastMalloc.h> -#include <wtf/PassRefPtr.h> #include <wtf/RefCounted.h> namespace WebCore { class MallocStatistics : public RefCounted<MallocStatistics> { public: - static PassRefPtr<MallocStatistics> create() { return adoptRef(new MallocStatistics()); } + static Ref<MallocStatistics> create() { return adoptRef(*new MallocStatistics); } size_t reservedVMBytes() const { return m_stats.reservedVMBytes; } size_t committedVMBytes() const { return m_stats.committedVMBytes; } @@ -50,5 +48,3 @@ private: }; } // namespace WebCore - -#endif |