diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-02 11:01:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-02 11:01:27 +0000 |
commit | 749c336d305040a374b406327b1c1b303e810983 (patch) | |
tree | 80bae906f69664692ec1f741340ff88d22c96d37 /sal | |
parent | fae0c3ad57301ab123739c44a0ae3b36ca5ef4a0 (diff) |
V804: Decreased performance
Change-Id: I53c2d11e81edb3f6d00984b3dc90994af5765164
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/all/log.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sal/osl/all/log.cxx b/sal/osl/all/log.cxx index aa3105d7b29e..67e384cb6fcd 100644 --- a/sal/osl/all/log.cxx +++ b/sal/osl/all/log.cxx @@ -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 |