Bug 1416174 - part 4 - OSFileConstants should use UniquePtr instead of nsAutoPtr, r=smaug

This commit is contained in:
Andrea Marchesini 2017-11-10 19:37:13 +01:00
parent c0c371855c
commit 8088ca91a2
2 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,6 @@
#include "nsServiceManagerUtils.h"
#include "nsString.h"
#include "nsSystemInfo.h"
#include "nsAutoPtr.h"
#include "nsDirectoryServiceDefs.h"
#include "nsXULAppAPI.h"
#include "nsAppDirectoryServiceDefs.h"
@ -71,6 +70,7 @@
#include "mozilla/ClearOnShutdown.h"
#include "mozilla/StaticPtr.h"
#include "mozilla/UniquePtr.h"
#include "OSFileConstants.h"
#include "nsIOSFileConstantsService.h"
@ -243,7 +243,7 @@ OSFileConstantsService::InitOSFileConstants()
return NS_OK;
}
nsAutoPtr<Paths> paths(new Paths);
UniquePtr<Paths> paths(new Paths);
// Initialize paths->libDir
nsCOMPtr<nsIFile> file;

View File

@ -44,7 +44,7 @@ private:
bool mInitialized;
struct Paths;
nsAutoPtr<Paths> mPaths;
UniquePtr<Paths> mPaths;
/**
* (Unix) the umask, which goes in OS.Constants.Sys but