File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -215,6 +215,12 @@ GDALAlgorithmArgDecl &GDALAlgorithmArgDecl::SetMaxCount(int count)
215
215
return *this ;
216
216
}
217
217
218
+ /* ***********************************************************************/
219
+ /* GDALAlgorithmArg::~GDALAlgorithmArg() */
220
+ /* ***********************************************************************/
221
+
222
+ GDALAlgorithmArg::~GDALAlgorithmArg () = default ;
223
+
218
224
/* ***********************************************************************/
219
225
/* GDALAlgorithmArg::Set() */
220
226
/* ***********************************************************************/
@@ -2146,7 +2152,7 @@ GDALAlgorithm::AddArg(std::unique_ptr<GDALInConstructionAlgorithmArg> arg)
2146
2152
}
2147
2153
m_args.emplace_back (std::move (arg));
2148
2154
return *(
2149
- static_cast <GDALInConstructionAlgorithmArg *>(m_args.back ().get ()));
2155
+ cpl::down_cast <GDALInConstructionAlgorithmArg *>(m_args.back ().get ()));
2150
2156
}
2151
2157
2152
2158
GDALInConstructionAlgorithmArg &
Original file line number Diff line number Diff line change @@ -1161,6 +1161,9 @@ class CPL_DLL GDALAlgorithmArg /* non-final */
1161
1161
}
1162
1162
}
1163
1163
1164
+ /* * Destructor */
1165
+ virtual ~GDALAlgorithmArg ();
1166
+
1164
1167
/* * Return the argument declaration. */
1165
1168
const GDALAlgorithmArgDecl &GetDeclaration () const
1166
1169
{
You can’t perform that action at this time.
0 commit comments