Bug 1317954 - Use auto type specifier where aplicable for variable declarations to improve code readability and maintainability in xpcom/. r=froydnj
MozReview-Commit-ID: EZZrYF1W81B
This commit is contained in:
@@ -827,7 +827,7 @@ nsLocalFile::CopyToNative(nsIFile* aNewParent, const nsACString& aNewName)
|
||||
#endif
|
||||
|
||||
// actually create the file.
|
||||
nsLocalFile* newFile = new nsLocalFile();
|
||||
auto* newFile = new nsLocalFile();
|
||||
nsCOMPtr<nsIFile> fileRef(newFile); // release on exit
|
||||
|
||||
rv = newFile->InitWithNativePath(newPathName);
|
||||
@@ -1040,7 +1040,7 @@ nsLocalFile::Remove(bool aRecursive)
|
||||
}
|
||||
|
||||
if (aRecursive) {
|
||||
nsDirEnumeratorUnix* dir = new nsDirEnumeratorUnix();
|
||||
auto* dir = new nsDirEnumeratorUnix();
|
||||
|
||||
nsCOMPtr<nsISimpleEnumerator> dirRef(dir); // release on exit
|
||||
|
||||
|
||||
Reference in New Issue
Block a user