Bug 1179451 - Part 3: Use .get() to assign nsRefPtrs to raw pointers. r=froydnj

This commit is contained in:
Aryeh Gregor 2015-08-13 15:22:48 +03:00
parent 2e17de3e1e
commit 64b9b8d79d
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ PluginScriptableObjectChild::IdentifierTable PluginScriptableObjectChild::sIdent
/* static */ PluginScriptableObjectChild::StoredIdentifier*
PluginScriptableObjectChild::HashIdentifier(const nsCString& aIdentifier)
{
StoredIdentifier* stored = sIdentifiers.Get(aIdentifier);
StoredIdentifier* stored = sIdentifiers.Get(aIdentifier).get();
if (stored) {
return stored;
}

View File

@ -895,7 +895,7 @@ nsToolkitProfileService::CreateProfileInternal(nsIFile* aRootDir,
rv = CreateTimesInternal(rootDir);
NS_ENSURE_SUCCESS(rv, rv);
nsToolkitProfile* last = aForExternalApp ? nullptr : mFirst;
nsToolkitProfile* last = aForExternalApp ? nullptr : mFirst.get();
if (last) {
while (last->mNext)
last = last->mNext;