diff options
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 |