Bug 1038149 - Make nsDriveEnumerator's destructor private; r=bjacob
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 14 Jul 2014 21:47:36 -0400
changeset 215885 c9c1acd7c1c3bb82a76a945621cf8d51078d7752
parent 215884 d4625d8a9c9a56a9129a02cfaa5e6c47513ab0d3
child 215886 736fd22eeef4f1bfbe18e532743ae922ffb98196
push id515
push userraliiev@mozilla.com
push dateMon, 06 Oct 2014 12:51:51 +0000
treeherdermozilla-release@267c7a481bef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbjacob
bugs1038149
milestone33.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1038149 - Make nsDriveEnumerator's destructor private; r=bjacob
xpcom/io/nsLocalFileWin.cpp
--- a/xpcom/io/nsLocalFileWin.cpp
+++ b/xpcom/io/nsLocalFileWin.cpp
@@ -284,21 +284,22 @@ private:
   // Stores the path to perform the operation on
   nsString mResolvedPath;
 };
 
 class nsDriveEnumerator : public nsISimpleEnumerator
 {
 public:
   nsDriveEnumerator();
-  virtual ~nsDriveEnumerator();
   NS_DECL_ISUPPORTS
   NS_DECL_NSISIMPLEENUMERATOR
   nsresult Init();
 private:
+  virtual ~nsDriveEnumerator();
+
   /* mDrives stores the null-separated drive names.
    * Init sets them.
    * HasMoreElements checks mStartOfCurrentDrive.
    * GetNext advances mStartOfCurrentDrive.
    */
   nsString mDrives;
   nsAString::const_iterator mStartOfCurrentDrive;
   nsAString::const_iterator mEndOfDrivesString;