summaryrefslogtreecommitdiff
path: root/Source/WebKit/efl/tests/UnitTestUtils/EWKTestView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/efl/tests/UnitTestUtils/EWKTestView.cpp')
-rw-r--r--Source/WebKit/efl/tests/UnitTestUtils/EWKTestView.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/WebKit/efl/tests/UnitTestUtils/EWKTestView.cpp b/Source/WebKit/efl/tests/UnitTestUtils/EWKTestView.cpp
index fd29b811c..dbb0092e8 100644
--- a/Source/WebKit/efl/tests/UnitTestUtils/EWKTestView.cpp
+++ b/Source/WebKit/efl/tests/UnitTestUtils/EWKTestView.cpp
@@ -23,6 +23,7 @@
#include <EWebKit.h>
#include <wtf/PassOwnPtr.h>
+#include <wtf/RefPtr.h>
namespace EWKUnitTests {
@@ -98,11 +99,11 @@ bool EWKTestView::init()
switch (m_defaultViewType) {
case SingleView:
- m_webView = adoptPtr(ewk_view_single_add(m_evas));
+ m_webView = adoptRef(ewk_view_single_add(m_evas));
break;
case TiledView:
- m_webView = adoptPtr(ewk_view_tiled_add(m_evas));
+ m_webView = adoptRef(ewk_view_tiled_add(m_evas));
break;
}