From e71c19e7559e8b12782f0f495852dc10e01c3a18 Mon Sep 17 00:00:00 2001 From: David Gardner Date: Fri, 1 Nov 2024 18:34:42 -0700 Subject: [PATCH] Annotate ~PyDataTable with override, add NOLINT to read_element --- .../_lib/include/morpheus/objects/python_data_table.hpp | 2 +- .../morpheus/_lib/include/morpheus/objects/tensor_object.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/morpheus/morpheus/_lib/include/morpheus/objects/python_data_table.hpp b/python/morpheus/morpheus/_lib/include/morpheus/objects/python_data_table.hpp index 9944fa5302..4a0a222edb 100644 --- a/python/morpheus/morpheus/_lib/include/morpheus/objects/python_data_table.hpp +++ b/python/morpheus/morpheus/_lib/include/morpheus/objects/python_data_table.hpp @@ -44,7 +44,7 @@ struct PyDataTable : public IDataTable * @param py_table */ PyDataTable(pybind11::object&& py_table); - ~PyDataTable(); + ~PyDataTable() override; /** * @brief cuDF table rows count diff --git a/python/morpheus/morpheus/_lib/include/morpheus/objects/tensor_object.hpp b/python/morpheus/morpheus/_lib/include/morpheus/objects/tensor_object.hpp index df3fcf8912..1328c021e5 100644 --- a/python/morpheus/morpheus/_lib/include/morpheus/objects/tensor_object.hpp +++ b/python/morpheus/morpheus/_lib/include/morpheus/objects/tensor_object.hpp @@ -294,7 +294,7 @@ struct TensorObject final } template - T read_element(const TensorIndex (&idx)[N]) const + T read_element(const TensorIndex (&idx)[N]) const // NOLINT(modernize-avoid-c-arrays) { auto stride = this->get_stride(); auto shape = this->get_shape();