Bug 953296 - Bug 953296 - Convert ScopedDeletePtr to UniquePtr in in widget/gonk/OrientationObserver.h. r=mwu
authorJeff Walden <jwalden@mit.edu>
Sat, 04 Jan 2014 19:17:52 -0600
changeset 192957 0b47204c864071c23c65a816db38135ab1a897c3
parent 192956 0730e6e7639d10181e040bdd71c79c3cda6aedf9
child 192958 beaf149165f905e14369d5794a459e8eebc212e6
push id27103
push usercbook@mozilla.com
push dateWed, 09 Jul 2014 13:55:18 +0000
treeherdermozilla-central@f945d50e50fc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmwu
bugs953296
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 953296 - Bug 953296 - Convert ScopedDeletePtr to UniquePtr in in widget/gonk/OrientationObserver.h. r=mwu
widget/gonk/OrientationObserver.h
--- a/widget/gonk/OrientationObserver.h
+++ b/widget/gonk/OrientationObserver.h
@@ -15,17 +15,17 @@
  * limitations under the License.
  */
 
 #ifndef OrientationObserver_h
 #define OrientationObserver_h
 
 #include "mozilla/Observer.h"
 #include "mozilla/dom/ScreenOrientation.h"
-#include "mozilla/Scoped.h"
+#include "mozilla/UniquePtr.h"
 
 namespace mozilla {
 class ProcessOrientation;
 namespace hal {
 class SensorData;
 typedef mozilla::Observer<SensorData> ISensorObserver;
 } // namespace hal
 } // namespace mozilla
@@ -54,17 +54,17 @@ public:
   bool LockScreenOrientation(ScreenOrientation aOrientation);
   void UnlockScreenOrientation();
 
   static OrientationObserver* GetInstance();
 
 private:
   bool mAutoOrientationEnabled;
   uint32_t mAllowedOrientations;
-  mozilla::ScopedDeletePtr<mozilla::ProcessOrientation> mOrientation;
+  mozilla::UniquePtr<mozilla::ProcessOrientation> mOrientation;
 
   static const uint32_t sDefaultOrientations =
       mozilla::dom::eScreenOrientation_PortraitPrimary |
       mozilla::dom::eScreenOrientation_PortraitSecondary |
       mozilla::dom::eScreenOrientation_LandscapePrimary |
       mozilla::dom::eScreenOrientation_LandscapeSecondary;
 };