mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1416174 - part 4 - OSFileConstants should use UniquePtr instead of nsAutoPtr, r=smaug
This commit is contained in:
parent
c0c371855c
commit
8088ca91a2
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user