diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-01-17 21:15:24 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-01-17 21:15:24 +0100 |
| commit | 3fc48e6146e020b86a0ef87749cc645f9b4fa113 (patch) | |
| tree | 810b23b6de2e775eca03eafd81ff659a8a0319a0 /src/iso19111/factory.cpp | |
| parent | 6d2af0904652baba69ec81261c914e9b68221dac (diff) | |
| download | PROJ-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/factory.cpp')
| -rw-r--r-- | src/iso19111/factory.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/iso19111/factory.cpp b/src/iso19111/factory.cpp index 3b6563f3..fb75b7b6 100644 --- a/src/iso19111/factory.cpp +++ b/src/iso19111/factory.cpp @@ -1170,9 +1170,9 @@ struct AuthorityFactory::Private { const std::string &authorityName) : context_(contextIn), authority_(authorityName) {} - inline const std::string &authority() PROJ_CONST_DEFN { return authority_; } + inline const std::string &authority() PROJ_PURE_DEFN { return authority_; } - inline const DatabaseContextNNPtr &context() PROJ_CONST_DEFN { + inline const DatabaseContextNNPtr &context() PROJ_PURE_DEFN { return context_; } @@ -3732,7 +3732,7 @@ AuthorityFactory::createFromCRSCodesWithIntermediates( /** \brief Returns the authority name associated to this factory. * @return name. */ -const std::string &AuthorityFactory::getAuthority() PROJ_CONST_DEFN { +const std::string &AuthorityFactory::getAuthority() PROJ_PURE_DEFN { return d->authority(); } |
