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

View file

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