aboutsummaryrefslogtreecommitdiff
path: root/src/grids.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-03-07 00:27:13 +0100
committerEven Rouault <even.rouault@spatialys.com>2021-03-07 00:27:13 +0100
commita14026d71582c5a913e9266a36ec0693ab376cf0 (patch)
treef43c538b31dcc609b702d09cc392673117438a83 /src/grids.cpp
parent3af34fc1c404ab05499134fb36288c883ae1c1c9 (diff)
downloadPROJ-a14026d71582c5a913e9266a36ec0693ab376cf0.tar.gz
PROJ-a14026d71582c5a913e9266a36ec0693ab376cf0.zip
NTv2Grid: remove useless m_name member (redundant with one of base class)
Diffstat (limited to 'src/grids.cpp')
-rw-r--r--src/grids.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/grids.cpp b/src/grids.cpp
index 03a324f9..ce0f6b76 100644
--- a/src/grids.cpp
+++ b/src/grids.cpp
@@ -1799,7 +1799,6 @@ class NTv2GridSet : public HorizontalShiftGridSet {
class NTv2Grid : public HorizontalShiftGrid {
friend class NTv2GridSet;
- std::string m_name;
PJ_CONTEXT *m_ctx; // owned by the parent NTv2GridSet
File *m_fp; // owned by the parent NTv2GridSet
unsigned long long m_offset;
@@ -1812,9 +1811,8 @@ class NTv2Grid : public HorizontalShiftGrid {
NTv2Grid(const std::string &nameIn, PJ_CONTEXT *ctx, File *fp,
unsigned long long offsetIn, bool mustSwapIn, int widthIn,
int heightIn, const ExtentAndRes &extentIn)
- : HorizontalShiftGrid(nameIn, widthIn, heightIn, extentIn),
- m_name(nameIn), m_ctx(ctx), m_fp(fp), m_offset(offsetIn),
- m_mustSwap(mustSwapIn) {}
+ : HorizontalShiftGrid(nameIn, widthIn, heightIn, extentIn), m_ctx(ctx),
+ m_fp(fp), m_offset(offsetIn), m_mustSwap(mustSwapIn) {}
bool valueAt(int, int, bool, float &lonShift,
float &latShift) const override;