Kaydet (Commit) 749c336d authored tarafından Caolán McNamara's avatar Caolán McNamara

V804: Decreased performance

Change-Id: I53c2d11e81edb3f6d00984b3dc90994af5765164
üst fae0c3ad
......@@ -194,9 +194,10 @@ void log(
if (level == SAL_DETAIL_LOG_LEVEL_DEBUG) {
s << ' ';
} else {
const size_t nStrLen(std::strlen(SRCDIR "/"));
s << (where
+ (std::strncmp(where, SRCDIR "/", std::strlen(SRCDIR "/")) == 0
? std::strlen(SRCDIR "/") : 0));
+ (std::strncmp(where, SRCDIR "/", nStrLen) == 0
? nStrLen : 0));
}
s << message << '\n';
#if defined ANDROID
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment