forked from qt-creator/qt-creator
Clang: Workaround dot detection for arrow correction
...by explicitly checking for the dot in the source. Task-number: QTCREATORBUG-15654 Change-Id: I4172e88a7fbb3015ef391daf13ded1f0002aab9c Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
This commit is contained in:
@@ -65,6 +65,14 @@ const char *UnsavedFile::filePath() const
|
||||
return cxUnsavedFile.Filename;
|
||||
}
|
||||
|
||||
bool UnsavedFile::hasCharacterAt(uint position, char character) const
|
||||
{
|
||||
if (position < cxUnsavedFile.Length)
|
||||
return cxUnsavedFile.Contents[position] == character;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool UnsavedFile::replaceAt(uint position, uint length, const Utf8String &replacement)
|
||||
{
|
||||
if (position < cxUnsavedFile.Length) {
|
||||
|
||||
Reference in New Issue
Block a user