Skip to content

Commit c7b2fdf

Browse files
committed
Use explicit '*' with auto for pointers in tests
1 parent e4f3feb commit c7b2fdf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/unit/unit.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ struct OperatorTest {
6161
using ItemType = Operator;
6262

6363
static ItemType* init(const UnitTest &t) {
64-
auto op = Operator::instantiate(t.name, t.param);
64+
auto *op = Operator::instantiate(t.name, t.param);
6565
assert(op != nullptr);
6666

6767
std::string error;
@@ -86,7 +86,7 @@ struct TransformationTest {
8686
using ItemType = Transformation;
8787

8888
static ItemType* init(const UnitTest &t) {
89-
auto tfn = Transformation::instantiate("t:" + t.name);
89+
auto *tfn = Transformation::instantiate("t:" + t.name);
9090
assert(tfn != nullptr);
9191

9292
return tfn;
@@ -264,7 +264,7 @@ int main(int argc, char **argv) {
264264
if (r.size() == 0) {
265265
std::cout << KGRN << "0 tests failed.";
266266
} else {
267-
for (const auto &i : r) {
267+
for (const auto *i : r) {
268268
if (i->skipped == true) {
269269
skp++;
270270
}

0 commit comments

Comments
 (0)