Commit 9d93140a authored by ossy@webkit.org's avatar ossy@webkit.org

URTBF after r159129, use create() instead of adopt() everywhere.

* UIProcess/WebGrammarDetail.cpp:
(WebKit::WebGrammarDetail::guesses):
* UIProcess/efl/WebUIPopupMenuClient.cpp:
(WebUIPopupMenuClient::showPopupMenu):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159131 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 31803ed0
2013-11-12 Csaba Osztrogonác <ossy@webkit.org>
URTBF after r159129, use create() instead of adopt() everywhere.
* UIProcess/WebGrammarDetail.cpp:
(WebKit::WebGrammarDetail::guesses):
* UIProcess/efl/WebUIPopupMenuClient.cpp:
(WebUIPopupMenuClient::showPopupMenu):
2013-11-12 Anders Carlsson <andersca@apple.com>
Simplify ImmutableArray creation
......
......@@ -61,7 +61,7 @@ PassRefPtr<ImmutableArray> WebGrammarDetail::guesses() const
Vector<RefPtr<APIObject> > wkGuesses(numGuesses);
for (unsigned i = 0; i < numGuesses; ++i)
wkGuesses[i] = WebString::create(m_grammarDetail.guesses[i]);
return ImmutableArray::adopt(wkGuesses);
return ImmutableArray::create(std::move(wkGuesses));
}
WebGrammarDetail::WebGrammarDetail(const WebCore::GrammarDetail& grammarDetail)
......
......@@ -46,7 +46,7 @@ void WebUIPopupMenuClient::showPopupMenu(WebPageProxy* pageProxy, WebPopupMenuPr
RefPtr<ImmutableArray> ItemsArray;
if (!webPopupItems.isEmpty())
ItemsArray = ImmutableArray::adopt(webPopupItems);
ItemsArray = ImmutableArray::create(std::move(webPopupItems));
m_client.showPopupMenu(toAPI(pageProxy), toAPI(static_cast<WebPopupMenuListenerEfl*>(popupMenuProxy)), toAPI(rect), toAPI(textDirection), pageScaleFactor, toAPI(ItemsArray.get()), selectedIndex, m_client.clientInfo);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment