mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 03:12:56 +00:00
avoid temporary in QTextEngine::length()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
492a916c55
commit
dc1f43455d
1 changed files with 1 additions and 2 deletions
|
@ -454,8 +454,7 @@ public:
|
|||
glyph_metrics_t tightBoundingBox(int from, int len) const;
|
||||
|
||||
int length(int item) const {
|
||||
const QScriptItem &si = layoutData->items[item];
|
||||
int from = si.position;
|
||||
int from = layoutData->items[item].position;
|
||||
item++;
|
||||
return (item < layoutData->items.size() ? layoutData->items[item].position : layoutData->string.length()) - from;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue