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:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user