Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/internal/TestCPPTestCase.h
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ namespace TestCPP {
* @param failureMessage The error message from the test that
* should be logged.
*/
void logTestFailure (string failureMessage);
void logTestFailure (const string& failureMessage);
/**
* @brief Internal test run controller.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/TestCPPTestCase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ namespace TestCPP {
out << TCPPStr::REASON_ << reason << endl;
}

void TestCase::logTestFailure (string reason) {
void TestCase::logTestFailure (const string& reason) {
unique_ptr<ostream> logStream = nullptr;

if (this->clogOriginal.get() != nullptr) {
Expand Down