From 86ace87a86050c7f44d9eb714e410fe58c407664 Mon Sep 17 00:00:00 2001 From: Marco Bonardo Date: Thu, 22 Mar 2018 11:17:58 +0100 Subject: [PATCH] Bug 1447929 - Fix a few interface/concrete smart pointers in Places. r=standard8 MozReview-Commit-ID: IEoPxZseoyw --HG-- extra : rebase_source : 9f4e25a2174b4b179bb45807da4263ca225970bf --- toolkit/components/places/SQLFunctions.cpp | 2 +- toolkit/components/places/nsNavHistory.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/toolkit/components/places/SQLFunctions.cpp b/toolkit/components/places/SQLFunctions.cpp index cf1804faff96..b2b72362a23a 100644 --- a/toolkit/components/places/SQLFunctions.cpp +++ b/toolkit/components/places/SQLFunctions.cpp @@ -576,7 +576,7 @@ namespace places { // Fetch the page stats from the database. { - RefPtr getPageInfo = DB->GetStatement( + nsCOMPtr getPageInfo = DB->GetStatement( "SELECT typed, visit_count, foreign_count, " "(substr(url, 0, 7) = 'place:') " "FROM moz_places " diff --git a/toolkit/components/places/nsNavHistory.cpp b/toolkit/components/places/nsNavHistory.cpp index a298464952a8..85e804b378ba 100644 --- a/toolkit/components/places/nsNavHistory.cpp +++ b/toolkit/components/places/nsNavHistory.cpp @@ -2602,7 +2602,7 @@ NS_IMETHODIMP nsNavHistory::GetDBConnection(mozIStorageConnection **_DBConnection) { NS_ENSURE_ARG_POINTER(_DBConnection); - RefPtr connection = mDB->MainConn(); + nsCOMPtr connection = mDB->MainConn(); connection.forget(_DBConnection); return NS_OK;