зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1447929 - Fix a few interface/concrete smart pointers in Places. r=standard8
MozReview-Commit-ID: IEoPxZseoyw --HG-- extra : rebase_source : 9f4e25a2174b4b179bb45807da4263ca225970bf
This commit is contained in:
Родитель
067bafd141
Коммит
86ace87a86
|
@ -576,7 +576,7 @@ namespace places {
|
|||
|
||||
// Fetch the page stats from the database.
|
||||
{
|
||||
RefPtr<mozIStorageStatement> getPageInfo = DB->GetStatement(
|
||||
nsCOMPtr<mozIStorageStatement> getPageInfo = DB->GetStatement(
|
||||
"SELECT typed, visit_count, foreign_count, "
|
||||
"(substr(url, 0, 7) = 'place:') "
|
||||
"FROM moz_places "
|
||||
|
|
|
@ -2602,7 +2602,7 @@ NS_IMETHODIMP
|
|||
nsNavHistory::GetDBConnection(mozIStorageConnection **_DBConnection)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(_DBConnection);
|
||||
RefPtr<mozIStorageConnection> connection = mDB->MainConn();
|
||||
nsCOMPtr<mozIStorageConnection> connection = mDB->MainConn();
|
||||
connection.forget(_DBConnection);
|
||||
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче