diff options
author | Nico Weber <nicolasweber@gmx.de> | 2013-10-19 18:03:15 (GMT) |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2013-10-19 18:03:15 (GMT) |
commit | fffb8b1cddfd314acd2509f0507038d403222ab2 (patch) | |
tree | 631bc29827dc245b128e0caf1d0ddc000b409981 /src/msvc_helper-win32.cc | |
parent | 3ca52649616c5539101a9cbd8b2aba36462afd98 (diff) | |
download | Ninja-fffb8b1cddfd314acd2509f0507038d403222ab2.zip Ninja-fffb8b1cddfd314acd2509f0507038d403222ab2.tar.gz Ninja-fffb8b1cddfd314acd2509f0507038d403222ab2.tar.bz2 |
Minor style fixes. No functionality change.
Diffstat (limited to 'src/msvc_helper-win32.cc')
-rw-r--r-- | src/msvc_helper-win32.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/msvc_helper-win32.cc b/src/msvc_helper-win32.cc index 3065ab0..d2e2eb5 100644 --- a/src/msvc_helper-win32.cc +++ b/src/msvc_helper-win32.cc @@ -48,12 +48,14 @@ string EscapeForDepfile(const string& path) { } // static -string CLParser::FilterShowIncludes(const string& line, const string& deps_prefix) { - static const string deps_prefix_english = "Note: including file: "; +string CLParser::FilterShowIncludes(const string& line, + const string& deps_prefix) { + const string kDepsPrefixEnglish = "Note: including file: "; const char* in = line.c_str(); const char* end = in + line.size(); - const string& prefix = deps_prefix.empty() ? deps_prefix_english : deps_prefix; - if (end - in > (int)prefix.size() && memcmp(in, prefix.c_str(), (int)prefix.size()) == 0) { + const string& prefix = deps_prefix.empty() ? kDepsPrefixEnglish : deps_prefix; + if (end - in > (int)prefix.size() && + memcmp(in, prefix.c_str(), (int)prefix.size()) == 0) { in += prefix.size(); while (*in == ' ') ++in; |