CDB: Only use codemodel breakpoint correction for old cdbs.

Since version 6.2 cdb supports setting breakpoints on non
codelines and automatically set it to the next available line.

Change-Id: I27facf4f2463bad76a20ef0abb5a5412471c296f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
David Schulz
2014-05-14 10:20:03 +02:00
parent fe238305e5
commit 84790f9aef
8 changed files with 63 additions and 4 deletions

View File

@@ -102,6 +102,14 @@ void replace(std::wstring &s, wchar_t before, wchar_t after)
s[i] = after;
}
void replace(std::string &s, char before, char after)
{
const std::string::size_type size = s.size();
for (std::string::size_type i = 0; i < size; ++i)
if (s.at(i) == before)
s[i] = after;
}
bool endsWith(const std::string &haystack, const char *needle)
{
const size_t needleLen = strlen(needle);