1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

build: reduce usage of constexpr

some compilers has lack of proper support for that
This commit is contained in:
Alexander Alekhin
2019-04-22 15:41:27 +03:00
parent 8af96248bf
commit 44bd849697
6 changed files with 59 additions and 28 deletions
@@ -145,7 +145,7 @@ void LogTagConfigParser::parseNameAndLevel(const std::string& s)
void LogTagConfigParser::parseWildcard(const std::string& name, LogLevel level)
{
constexpr size_t npos = std::string::npos;
const size_t npos = std::string::npos;
const size_t len = name.length();
if (len == 0u)
{
+4
View File
@@ -10,6 +10,10 @@ namespace cv {
namespace utils {
namespace logging {
const char* LogTagManager::m_globalName = "global";
LogTagManager::LogTagManager(LogLevel defaultUnconfiguredGlobalLevel)
: m_mutex()
, m_globalLogTag(new LogTag(m_globalName, defaultUnconfiguredGlobalLevel))
+1 -1
View File
@@ -270,7 +270,7 @@ private:
static bool internal_isNamePartMatch(MatchingScope scope, size_t matchingPos);
private:
static constexpr const char* m_globalName = "global";
static const char* m_globalName;
private:
mutable MutexType m_mutex;