Commit 9552a32a by Marcus Winter

dataflow_cpp: removed cppcheck style warnings

parent 6f97a7c4
...@@ -104,7 +104,7 @@ class ArraySink { ...@@ -104,7 +104,7 @@ class ArraySink {
Init(); Init();
} }
void Print() { void Print() const {
std::cout << values_[0]; std::cout << values_[0];
for (int ii = 1; ii < SIZE; ii++) { for (int ii = 1; ii < SIZE; ii++) {
std::cout << ", " << values_[ii]; std::cout << ", " << values_[ii];
...@@ -119,7 +119,7 @@ class ArraySink { ...@@ -119,7 +119,7 @@ class ArraySink {
pos_ = 0; pos_ = 0;
} }
bool Check() { bool Check() const {
for (int ii = 0; ii < SIZE; ii++) { for (int ii = 0; ii < SIZE; ii++) {
int expected; int expected;
if (0 == (ii % 2)) if (0 == (ii % 2))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment