From af0c930e77133628d01caaf2b539da25fee0078c Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Tue, 28 Aug 2018 14:19:56 +0300 Subject: [PATCH] ts: don't pass NULL for std::string() constructor --- modules/ts/src/ts.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/ts/src/ts.cpp b/modules/ts/src/ts.cpp index fabfa1b260..66dd7656be 100644 --- a/modules/ts/src/ts.cpp +++ b/modules/ts/src/ts.cpp @@ -921,6 +921,14 @@ inline static void recordPropertyVerbose(const std::string & property, } } +inline static void recordPropertyVerbose(const std::string& property, const std::string& msg, + const char* value, const char* build_value = NULL) +{ + return recordPropertyVerbose(property, msg, + value ? std::string(value) : std::string(), + build_value ? std::string(build_value) : std::string()); +} + #ifdef _DEBUG #define CV_TEST_BUILD_CONFIG "Debug" #else