aboutsummaryrefslogtreecommitdiff
path: root/src/iso19111/coordinatesystem.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-01-17 21:15:24 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-01-17 21:15:24 +0100
commit3fc48e6146e020b86a0ef87749cc645f9b4fa113 (patch)
tree810b23b6de2e775eca03eafd81ff659a8a0319a0 /src/iso19111/coordinatesystem.cpp
parent6d2af0904652baba69ec81261c914e9b68221dac (diff)
downloadPROJ-3fc48e6146e020b86a0ef87749cc645f9b4fa113.tar.gz
PROJ-3fc48e6146e020b86a0ef87749cc645f9b4fa113.zip
Remove wrong use of PROJ_CONST_DECL and replace it with PROJ_PURE_DECL (fixes #1224)
Diffstat (limited to 'src/iso19111/coordinatesystem.cpp')
-rw-r--r--src/iso19111/coordinatesystem.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/iso19111/coordinatesystem.cpp b/src/iso19111/coordinatesystem.cpp
index 2281c78f..efba8c05 100644
--- a/src/iso19111/coordinatesystem.cpp
+++ b/src/iso19111/coordinatesystem.cpp
@@ -104,7 +104,7 @@ Meridian::~Meridian() = default;
*
* @return the longitude.
*/
-const common::Angle &Meridian::longitude() PROJ_CONST_DEFN {
+const common::Angle &Meridian::longitude() PROJ_PURE_DEFN {
return d->longitude_;
}
@@ -178,7 +178,7 @@ CoordinateSystemAxis::~CoordinateSystemAxis() = default;
*
* @return the abbreviation.
*/
-const std::string &CoordinateSystemAxis::abbreviation() PROJ_CONST_DEFN {
+const std::string &CoordinateSystemAxis::abbreviation() PROJ_PURE_DEFN {
return d->abbreviation;
}
@@ -199,7 +199,7 @@ const std::string &CoordinateSystemAxis::abbreviation() PROJ_CONST_DEFN {
*
* @return the direction.
*/
-const AxisDirection &CoordinateSystemAxis::direction() PROJ_CONST_DEFN {
+const AxisDirection &CoordinateSystemAxis::direction() PROJ_PURE_DEFN {
return *(d->direction);
}
@@ -213,7 +213,7 @@ const AxisDirection &CoordinateSystemAxis::direction() PROJ_CONST_DEFN {
*
* @return the axis unit.
*/
-const common::UnitOfMeasure &CoordinateSystemAxis::unit() PROJ_CONST_DEFN {
+const common::UnitOfMeasure &CoordinateSystemAxis::unit() PROJ_PURE_DEFN {
return d->unit;
}
@@ -225,7 +225,7 @@ const common::UnitOfMeasure &CoordinateSystemAxis::unit() PROJ_CONST_DEFN {
* @return the minimum value, or empty.
*/
const util::optional<double> &
-CoordinateSystemAxis::minimumValue() PROJ_CONST_DEFN {
+CoordinateSystemAxis::minimumValue() PROJ_PURE_DEFN {
return d->minimumValue;
}
@@ -237,7 +237,7 @@ CoordinateSystemAxis::minimumValue() PROJ_CONST_DEFN {
* @return the maximum value, or empty.
*/
const util::optional<double> &
-CoordinateSystemAxis::maximumValue() PROJ_CONST_DEFN {
+CoordinateSystemAxis::maximumValue() PROJ_PURE_DEFN {
return d->maximumValue;
}
@@ -249,7 +249,7 @@ CoordinateSystemAxis::maximumValue() PROJ_CONST_DEFN {
*
* @return the meridian, or null.
*/
-const MeridianPtr &CoordinateSystemAxis::meridian() PROJ_CONST_DEFN {
+const MeridianPtr &CoordinateSystemAxis::meridian() PROJ_PURE_DEFN {
return d->meridian;
}
@@ -466,7 +466,7 @@ CoordinateSystem::~CoordinateSystem() = default;
* @return the axes.
*/
const std::vector<CoordinateSystemAxisNNPtr> &
-CoordinateSystem::axisList() PROJ_CONST_DEFN {
+CoordinateSystem::axisList() PROJ_PURE_DEFN {
return d->axisList;
}