diff options
author | Tobias Markmann <tm@ayena.de> | 2016-06-10 12:38:40 (GMT) |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2016-06-10 13:11:04 (GMT) |
commit | f038599ba697acc17a328ef4ade5514fede8887e (patch) | |
tree | 1a7cb59f2490bbfd60fff2c92e147d93ea6d1166 /Swiften/Elements | |
parent | 33ffcd9bf5bc9806d0b404aae2aaf6d67a2945db (diff) | |
download | swift-f038599ba697acc17a328ef4ade5514fede8887e.zip swift-f038599ba697acc17a328ef4ade5514fede8887e.tar.bz2 |
Fix remaining compiler warnings on OS X with clang
This changes HippoMocks include to -isystem include so it will
not cause compiler warnings.
This changes UserLocation floating point values to double and
remove remaining numerical casts.
Change C++11 compiler test to not cause warnings.
Test-Information:
Builds with allow_warnings=0 on OS X 10.11.5 with Xcode clang.
Change-Id: I26c60265a86c9be656089ade63fe9ad63851580f
Diffstat (limited to 'Swiften/Elements')
-rw-r--r-- | Swiften/Elements/UserLocation.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/Swiften/Elements/UserLocation.h b/Swiften/Elements/UserLocation.h index 7d07d6a..3bdaec6 100644 --- a/Swiften/Elements/UserLocation.h +++ b/Swiften/Elements/UserLocation.h @@ -31,11 +31,11 @@ namespace Swift { this->area = value ; } - const boost::optional< float >& getAltitude() const { + const boost::optional< double >& getAltitude() const { return altitude; } - void setAltitude(const boost::optional< float >& value) { + void setAltitude(const boost::optional< double >& value) { this->altitude = value ; } @@ -47,19 +47,19 @@ namespace Swift { this->locality = value ; } - const boost::optional< float >& getLatitude() const { + const boost::optional< double >& getLatitude() const { return latitude; } - void setLatitude(const boost::optional< float >& value) { + void setLatitude(const boost::optional< double >& value) { this->latitude = value ; } - const boost::optional< float >& getAccuracy() const { + const boost::optional< double >& getAccuracy() const { return accuracy; } - void setAccuracy(const boost::optional< float >& value) { + void setAccuracy(const boost::optional< double >& value) { this->accuracy = value ; } @@ -135,19 +135,19 @@ namespace Swift { this->uri = value ; } - const boost::optional< float >& getLongitude() const { + const boost::optional< double >& getLongitude() const { return longitude; } - void setLongitude(const boost::optional< float >& value) { + void setLongitude(const boost::optional< double >& value) { this->longitude = value ; } - const boost::optional< float >& getError() const { + const boost::optional< double >& getError() const { return error; } - void setError(const boost::optional< float >& value) { + void setError(const boost::optional< double >& value) { this->error = value ; } @@ -159,11 +159,11 @@ namespace Swift { this->postalCode = value ; } - const boost::optional< float >& getBearing() const { + const boost::optional< double >& getBearing() const { return bearing; } - void setBearing(const boost::optional< float >& value) { + void setBearing(const boost::optional< double >& value) { this->bearing = value ; } @@ -191,21 +191,21 @@ namespace Swift { this->street = value ; } - const boost::optional< float >& getSpeed() const { + const boost::optional< double >& getSpeed() const { return speed; } - void setSpeed(const boost::optional< float >& value) { + void setSpeed(const boost::optional< double >& value) { this->speed = value ; } private: boost::optional< std::string > area; - boost::optional< float > altitude; + boost::optional< double > altitude; boost::optional< std::string > locality; - boost::optional< float > latitude; - boost::optional< float > accuracy; + boost::optional< double > latitude; + boost::optional< double > accuracy; boost::optional< std::string > description; boost::optional< std::string > countryCode; boost::optional< boost::posix_time::ptime > timestamp; @@ -215,13 +215,13 @@ namespace Swift { boost::optional< std::string > country; boost::optional< std::string > region; boost::optional< std::string > uri; - boost::optional< float > longitude; - boost::optional< float > error; + boost::optional< double > longitude; + boost::optional< double > error; boost::optional< std::string > postalCode; - boost::optional< float > bearing; + boost::optional< double > bearing; boost::optional< std::string > text; boost::optional< std::string > datum; boost::optional< std::string > street; - boost::optional< float > speed; + boost::optional< double > speed; }; } |