forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user