From c7c9daa1617bcf832f353ace8a9824ec934b3b92 Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Sat, 24 Nov 2012 10:40:29 +0100 Subject: Change QTextLayout::textOption() to return a const reference instead By changing textOption() to return a const reference we will get a performance increase when accessing this function internally. Task-number: QTBUG-28193 Change-Id: I65b594d844ebaee6d72f4a95d11bd2c5e801fab4 Reviewed-by: Lars Knoll Reviewed-by: Konstantin Ritt Reviewed-by: Eskil Abrahamsen Blomfeldt --- src/gui/text/qtextlayout.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/text/qtextlayout.h') diff --git a/src/gui/text/qtextlayout.h b/src/gui/text/qtextlayout.h index fbd188ce4e..2eec9fb2b6 100644 --- a/src/gui/text/qtextlayout.h +++ b/src/gui/text/qtextlayout.h @@ -125,7 +125,7 @@ public: QString text() const; void setTextOption(const QTextOption &option); - QTextOption textOption() const; + const QTextOption &textOption() const; void setPreeditArea(int position, const QString &text); int preeditAreaPosition() const; -- cgit v1.2.3