From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- .../WebCore/Modules/geolocation/GeolocationPosition.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'Source/WebCore/Modules/geolocation/GeolocationPosition.h') diff --git a/Source/WebCore/Modules/geolocation/GeolocationPosition.h b/Source/WebCore/Modules/geolocation/GeolocationPosition.h index 7b15648f8..d3548b658 100644 --- a/Source/WebCore/Modules/geolocation/GeolocationPosition.h +++ b/Source/WebCore/Modules/geolocation/GeolocationPosition.h @@ -23,20 +23,24 @@ * THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef GeolocationPosition_h -#define GeolocationPosition_h +#pragma once -#include +#include #include -#include namespace WebCore { class GeolocationPosition : public RefCounted { public: - static PassRefPtr create(double timestamp, double latitude, double longitude, double accuracy) { return adoptRef(new GeolocationPosition(timestamp, latitude, longitude, accuracy)); } + static Ref create(double timestamp, double latitude, double longitude, double accuracy) + { + return adoptRef(*new GeolocationPosition(timestamp, latitude, longitude, accuracy)); + } - static PassRefPtr create(double timestamp, double latitude, double longitude, double accuracy, bool providesAltitude, double altitude, bool providesAltitudeAccuracy, double altitudeAccuracy, bool providesHeading, double heading, bool providesSpeed, double speed) { return adoptRef(new GeolocationPosition(timestamp, latitude, longitude, accuracy, providesAltitude, altitude, providesAltitudeAccuracy, altitudeAccuracy, providesHeading, heading, providesSpeed, speed)); } + static Ref create(double timestamp, double latitude, double longitude, double accuracy, bool providesAltitude, double altitude, bool providesAltitudeAccuracy, double altitudeAccuracy, bool providesHeading, double heading, bool providesSpeed, double speed) + { + return adoptRef(*new GeolocationPosition(timestamp, latitude, longitude, accuracy, providesAltitude, altitude, providesAltitudeAccuracy, altitudeAccuracy, providesHeading, heading, providesSpeed, speed)); + } double timestamp() const { return m_timestamp; } @@ -103,5 +107,3 @@ private: }; } // namespace WebCore - -#endif // GeolocationPosition_h -- cgit v1.2.1