aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-03-16 11:03:07 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-03-16 12:32:45 +0100
commita8cb44cd0e9f5c6c3cbcfe91999bdc5f9e0bbb04 (patch)
tree353f6851b8f47d8d588e3d80944659a832d589c1 /src
parent1086ad8ad5f01d327932d5b67d83be2c2bd66b54 (diff)
downloadPROJ-a8cb44cd0e9f5c6c3cbcfe91999bdc5f9e0bbb04.tar.gz
PROJ-a8cb44cd0e9f5c6c3cbcfe91999bdc5f9e0bbb04.zip
Fix doc generation with Breathe 4.12.0
Breathe 4.12.0 (as pulled by MacOSX builds such as https://travis-ci.com/OSGeo/proj.4/jobs/185395222) does not seem to like default initialization in documented C++ structs (regression/bug) /Users/travis/build/OSGeo/proj.4/docs/source/development/reference/cpp/io.rst:6:Parsing of expression failed. Using fallback parser. Error was: Error in postfix expression, expected primary expression or type. If primary expression: Invalid definition: Expected identifier in nested name. [error at 67] std::string osgeo::proj::io::AuthorityFactory::CRSInfo::authName = {} -------------------------------------------------------------------^ If type: Invalid definition: Expected identifier in nested name. [error at 67] std::string osgeo::proj::io::AuthorityFactory::CRSInfo::authName = {} -------------------------------------------------------------------^
Diffstat (limited to 'src')
-rw-r--r--src/iso19111/coordinateoperation.cpp11
-rw-r--r--src/iso19111/factory.cpp19
2 files changed, 29 insertions, 1 deletions
diff --git a/src/iso19111/coordinateoperation.cpp b/src/iso19111/coordinateoperation.cpp
index d5bcfa84..0eef9954 100644
--- a/src/iso19111/coordinateoperation.cpp
+++ b/src/iso19111/coordinateoperation.cpp
@@ -552,7 +552,16 @@ struct CoordinateOperation::Private {
// ---------------------------------------------------------------------------
-GridDescription::GridDescription() = default;
+GridDescription::GridDescription():
+ shortName{},
+ fullName{},
+ packageName{},
+ url{},
+ directDownload(false),
+ openLicense(false),
+ available(false)
+{}
+
GridDescription::~GridDescription() = default;
diff --git a/src/iso19111/factory.cpp b/src/iso19111/factory.cpp
index b00a2c1a..d1fd4d0b 100644
--- a/src/iso19111/factory.cpp
+++ b/src/iso19111/factory.cpp
@@ -1359,6 +1359,25 @@ const DatabaseContextNNPtr &AuthorityFactory::databaseContext() const {
// ---------------------------------------------------------------------------
+//! @cond Doxygen_Suppress
+AuthorityFactory::CRSInfo::CRSInfo():
+ authName{},
+ code{},
+ name{},
+ type{ObjectType::CRS},
+ deprecated{},
+ bbox_valid{},
+ west_lon_degree{},
+ south_lat_degree{},
+ east_lon_degree{},
+ north_lat_degree{},
+ areaName{},
+ projectionMethodName{}
+{}
+//! @endcond
+
+// ---------------------------------------------------------------------------
+
/** \brief Returns an arbitrary object from a code.
*
* The returned object will typically be an instance of Datum,