forked from qt-creator/qt-creator
C++: Pass on the byte offsets of macro arguments
...to the Document/Block. Change-Id: I1a96dc70ac93254e6030326b36a5df9a2cdc2bd8 Reviewed-by: Christian Stenger <christian.stenger@digia.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Christian Stenger
parent
25a8ee7344
commit
c2e5f1c819
@@ -378,7 +378,9 @@ void Document::addMacroUse(const Macro ¯o,
|
||||
beginLine);
|
||||
|
||||
foreach (const MacroArgumentReference &actual, actuals) {
|
||||
const Block arg(0, 0, actual.utf16charsOffset(),
|
||||
const Block arg(actual.bytesOffset(),
|
||||
actual.bytesOffset() + actual.bytesLength(),
|
||||
actual.utf16charsOffset(),
|
||||
actual.utf16charsOffset() + actual.utf16charsLength());
|
||||
use.addArgument(arg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user