Skip to content

Commit 8f4dcf9

Browse files
therealbobopoiana
authored andcommitted
refactor(libsinsp): make base transform class pure virtual
Signed-off-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
1 parent 983ce5d commit 8f4dcf9

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

userspace/libsinsp/sinsp_filter_transformers/sinsp_filter_transformer.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ limitations under the License.
1616

1717
sinsp_filter_transformer::~sinsp_filter_transformer() {}
1818

19-
bool sinsp_filter_transformer::transform_type(ppm_param_type& t, uint32_t& flags) const {
20-
throw_unsupported_err(m_type);
21-
return false;
22-
}
23-
2419
bool sinsp_filter_transformer::string_transformer(std::vector<extract_value_t>& vec,
2520
ppm_param_type t,
2621
str_transformer_func_t f) {

userspace/libsinsp/sinsp_filter_transformers/sinsp_filter_transformer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class sinsp_filter_transformer {
7272

7373
virtual ~sinsp_filter_transformer();
7474

75-
virtual bool transform_type(ppm_param_type& t, uint32_t& flags) const;
75+
virtual bool transform_type(ppm_param_type& t, uint32_t& flags) const = 0;
7676

7777
virtual bool transform_values(std::vector<extract_value_t>& vals,
7878
ppm_param_type& t,

0 commit comments

Comments
 (0)