From 2b729a10bc5a1296c032de4f976ec83acc7fb23d Mon Sep 17 00:00:00 2001 From: Piotr Sarna Date: Mon, 23 Apr 2018 11:51:53 +0200 Subject: [PATCH] cql3: change operation::make_* functions to static This commit makes operation::make* functions static, because they don't access any instance-specific data anyway. It is later needed to decouple setter execution from binding a cql3::term. --- cql3/operation.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cql3/operation.hh b/cql3/operation.hh index de0104eeb1..1784a2cca9 100644 --- a/cql3/operation.hh +++ b/cql3/operation.hh @@ -87,15 +87,15 @@ public: virtual ~operation() {} - atomic_cell make_dead_cell(const update_parameters& params) const { + static atomic_cell make_dead_cell(const update_parameters& params) { return params.make_dead_cell(); } - atomic_cell make_cell(bytes_view value, const update_parameters& params) const { + static atomic_cell make_cell(bytes_view value, const update_parameters& params) { return params.make_cell(value); } - atomic_cell make_counter_update_cell(int64_t delta, const update_parameters& params) const { + static atomic_cell make_counter_update_cell(int64_t delta, const update_parameters& params) { return params.make_counter_update_cell(delta); }