From 3fc48e6146e020b86a0ef87749cc645f9b4fa113 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Thu, 17 Jan 2019 21:15:24 +0100 Subject: Remove wrong use of PROJ_CONST_DECL and replace it with PROJ_PURE_DECL (fixes #1224) --- src/iso19111/factory.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/iso19111/factory.cpp') 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(); } -- cgit v1.2.3