[EFL][WK2] Build warning : fix warning about extended initializer lists on EWK2UnitTe...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Sep 2012 05:03:55 +0000 (05:03 +0000)
committerKrzysztof Wolanski <k.wolanski@samsung.com>
Mon, 8 Apr 2013 14:08:49 +0000 (16:08 +0200)
https://bugs.webkit.org/show_bug.cgi?id=95990

Patch by Byungwoo Lee <bw80.lee@samsung.com> on 2012-09-10
Reviewed by Gyuyoung Kim.

Fix build warning about extended initializer lists only available with
-std=c++0x or -std=gnu++0x.

* UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:
(EWK2UnitTest::ewk2UnitTestBrowserViewSmartClass):
(EWK2UnitTest):
(EWK2UnitTest::EWK2UnitTestBase::EWK2UnitTestBase):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128145 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Conflicts:

Source/WebKit2/UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp

Change-Id: I2366a936caa84412705ffd7e9f9f24cd706f9640

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp

index 8d15c63..b6b662f 100644 (file)
@@ -1,3 +1,18 @@
+2012-09-10  Byungwoo Lee  <bw80.lee@samsung.com>
+
+        [EFL][WK2] Build warning : fix warning about extended initializer lists on EWK2UnitTestBase.cpp.
+        https://bugs.webkit.org/show_bug.cgi?id=95990
+
+        Reviewed by Gyuyoung Kim.
+
+        Fix build warning about extended initializer lists only available with
+        -std=c++0x or -std=gnu++0x.
+
+        * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:
+        (EWK2UnitTest::ewk2UnitTestBrowserViewSmartClass):
+        (EWK2UnitTest):
+        (EWK2UnitTest::EWK2UnitTestBase::EWK2UnitTestBase):
+
 2012-11-08  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
 
         [EFL] Add a method to the TextCheckerEnchant class to check whether any dictionary is loaded
index 578947d..554ca35 100755 (executable)
@@ -37,6 +37,12 @@ extern EWK2UnitTest::EWK2UnitTestEnvironment* environment;
 
 namespace EWK2UnitTest {
 
+static Ewk_View_Smart_Class ewk2UnitTestBrowserViewSmartClass()
+{
+    static Ewk_View_Smart_Class ewkViewClass = EWK_VIEW_SMART_CLASS_INIT_NAME_VERSION("Browser_View");
+    return ewkViewClass;
+}
+
 EWK2UnitTestBase::EWK2UnitTestBase()
 #if ENABLE(TIZEN_DAILY_UPVERSIONING)
     : m_webView(0)
@@ -45,7 +51,7 @@ EWK2UnitTestBase::EWK2UnitTestBase()
     : m_ecoreEvas(0)
     , m_webView(0)
 #endif
-    , m_ewkViewClass(EWK_VIEW_SMART_CLASS_INIT_NAME_VERSION("Browser_View"))
+    , m_ewkViewClass(ewk2UnitTestBrowserViewSmartClass())
 {
     ewk_view_smart_class_set(&m_ewkViewClass);
 }