Skip to content

Commit 135b1b9

Browse files
committed
Fix variable declaration to use const reference
1 parent fd793e4 commit 135b1b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/src/preprocess/preprocess_steps_impl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void PreStepsList::add_clamp(double min_value, double max_value) {
111111
"RGB/BGR color format using 'PreProcessSteps::convert_color'");
112112

113113
const auto& node = nodes.front();
114-
auto element_type = node.get_element_type();
114+
const auto& element_type = node.get_element_type();
115115
OPENVINO_ASSERT(element_type.is_real(),
116116
"Clamp preprocessing can be applied to 'double' inputs. Consider using "
117117
"'convert_element_type' before clamping. Current type is: ",

0 commit comments

Comments
 (0)