From e995d45e4cac9f6197ba387e5fbfeca8ce71a387 Mon Sep 17 00:00:00 2001 From: Biljana Bojovic Date: Wed, 5 Apr 2023 21:17:33 +0200 Subject: [PATCH] core: Pass by ref. test name in ValArrayTestCase, MatrixArrayTestCase and ComplexMatrixArrayTestCase --- src/core/test/matrix-array-test-suite.cc | 8 ++++---- src/core/test/val-array-test-suite.cc | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/core/test/matrix-array-test-suite.cc b/src/core/test/matrix-array-test-suite.cc index 100be2ed9..d4084a4c7 100644 --- a/src/core/test/matrix-array-test-suite.cc +++ b/src/core/test/matrix-array-test-suite.cc @@ -50,7 +50,7 @@ class MatrixArrayTestCase : public TestCase * * \param [in] name reference name */ - MatrixArrayTestCase(const std::string name); + MatrixArrayTestCase(const std::string& name); /** Destructor. */ ~MatrixArrayTestCase() override; @@ -83,7 +83,7 @@ class MatrixArrayTestCase : public TestCase }; template -MatrixArrayTestCase::MatrixArrayTestCase(const std::string name) +MatrixArrayTestCase::MatrixArrayTestCase(const std::string& name) : TestCase(name) { } @@ -456,7 +456,7 @@ class ComplexMatrixArrayTestCase : public TestCase * * \param [in] name reference name */ - ComplexMatrixArrayTestCase(const std::string name); + ComplexMatrixArrayTestCase(const std::string& name); /** Destructor*/ ~ComplexMatrixArrayTestCase() override; @@ -469,7 +469,7 @@ ComplexMatrixArrayTestCase::ComplexMatrixArrayTestCase() { } -ComplexMatrixArrayTestCase::ComplexMatrixArrayTestCase(const std::string name) +ComplexMatrixArrayTestCase::ComplexMatrixArrayTestCase(const std::string& name) : TestCase(name) { } diff --git a/src/core/test/val-array-test-suite.cc b/src/core/test/val-array-test-suite.cc index 44369c278..8ac7dd534 100644 --- a/src/core/test/val-array-test-suite.cc +++ b/src/core/test/val-array-test-suite.cc @@ -48,7 +48,7 @@ class ValArrayTestCase : public TestCase * * \param [in] name reference name */ - ValArrayTestCase(const std::string name); + ValArrayTestCase(const std::string& name); /** Destructor. */ ~ValArrayTestCase() override; @@ -80,7 +80,7 @@ class ValArrayTestCase : public TestCase }; template -ValArrayTestCase::ValArrayTestCase(const std::string name) +ValArrayTestCase::ValArrayTestCase(const std::string& name) : TestCase(name) { }