core: Pass by ref. test name in ValArrayTestCase, MatrixArrayTestCase and ComplexMatrixArrayTestCase

This commit is contained in:
Biljana Bojovic
2023-04-05 21:17:33 +02:00
committed by Biljana B
parent 8101dbb147
commit e995d45e4c
2 changed files with 6 additions and 6 deletions

View File

@@ -50,7 +50,7 @@ class MatrixArrayTestCase : public TestCase
*
* \param [in] name reference name
*/
MatrixArrayTestCase<T>(const std::string name);
MatrixArrayTestCase<T>(const std::string& name);
/** Destructor. */
~MatrixArrayTestCase<T>() override;
@@ -83,7 +83,7 @@ class MatrixArrayTestCase : public TestCase
};
template <class T>
MatrixArrayTestCase<T>::MatrixArrayTestCase(const std::string name)
MatrixArrayTestCase<T>::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)
{
}

View File

@@ -48,7 +48,7 @@ class ValArrayTestCase : public TestCase
*
* \param [in] name reference name
*/
ValArrayTestCase<T>(const std::string name);
ValArrayTestCase<T>(const std::string& name);
/** Destructor. */
~ValArrayTestCase<T>() override;
@@ -80,7 +80,7 @@ class ValArrayTestCase : public TestCase
};
template <class T>
ValArrayTestCase<T>::ValArrayTestCase(const std::string name)
ValArrayTestCase<T>::ValArrayTestCase(const std::string& name)
: TestCase(name)
{
}