Skip to content
Snippets Groups Projects
Commit 23ca5e0e authored by Shaun Roe's avatar Shaun Roe
Browse files

solve one cppcheck defect

parent 85f047fc
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,9 @@ namespace HistValFunctions {
//string comparisons done right:
void test(const std::string& testname, const char* val1, const char* val2)
{
if ((val1 == nullptr) or (val2==nullptr)){
testfailed(testname);
}
if (std::string(val1)!=std::string(val2))
testfailed(testname,val1,val2);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment