Bug 1126724 - Fixed WindowsLocationProvider.cpp compilation on GCC. r=josh
authorJacek Caban <jacek@codeweavers.com>
Thu, 29 Jan 2015 13:02:07 +0100
changeset 226496 9d901e50344005aa1c74ed07dd6bb679bec39828
parent 226495 44fc5d2b4dfe5f95d0f3782b536086808324a872
child 226497 b6975a40b2e214ca52a01c357a8b8fdccdbd314e
push id54859
push userjacek@codeweavers.com
push dateThu, 29 Jan 2015 12:03:12 +0000
treeherdermozilla-inbound@9d901e503440 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjosh
bugs1126724
milestone38.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 1126724 - Fixed WindowsLocationProvider.cpp compilation on GCC. r=josh
dom/system/windows/WindowsLocationProvider.cpp
dom/system/windows/WindowsLocationProvider.h
--- a/dom/system/windows/WindowsLocationProvider.cpp
+++ b/dom/system/windows/WindowsLocationProvider.cpp
@@ -2,18 +2,16 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "WindowsLocationProvider.h"
 #include "nsGeoPosition.h"
 #include "nsIDOMGeoPositionError.h"
 #include "prtime.h"
 
-#include <LocationApi.h>
-
 namespace mozilla {
 namespace dom {
 
 class LocationEvent MOZ_FINAL : public ILocationEvents
 {
 public:
   LocationEvent(nsIGeolocationUpdate* aCallback)
     : mCallback(aCallback), mCount(0) {
--- a/dom/system/windows/WindowsLocationProvider.h
+++ b/dom/system/windows/WindowsLocationProvider.h
@@ -3,29 +3,31 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #ifndef mozilla_dom_WindowsLocationProvider_h__
 #define mozilla_dom_WindowsLocationProvider_h__
 
 #include "nsAutoPtr.h"
 #include "nsIGeolocationProvider.h"
 
-#include <LocationApi.h>
+#include <locationapi.h>
 
 namespace mozilla {
 namespace dom {
 
 class WindowsLocationProvider MOZ_FINAL : public nsIGeolocationProvider
 {
 public:
   NS_DECL_ISUPPORTS
   NS_DECL_NSIGEOLOCATIONPROVIDER
 
   WindowsLocationProvider();
 
 private:
+  ~WindowsLocationProvider() {}
+
   nsRefPtr<ILocation> mLocation;
 };
 
 } // namespace dom
 } // namespace mozilla
 
 #endif // mozilla_dom_WindowsLocationProvider_h__