From 97f9c6f8cdc0dd0f676c6ccfeb1cd6096e72fd48 Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Tue, 10 Apr 2012 14:30:52 +0200 Subject: Minor clean up in QTextOption API Source compatible, but binary incompatible, change to QTextOption API to make it consistent with Qt's coding style. Change-Id: I368f13925339fa41025a570f684f4b944844a022 Reviewed-by: Jiang Jiang --- src/gui/text/qtextoption.cpp | 4 ++-- src/gui/text/qtextoption.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/gui/text/qtextoption.cpp b/src/gui/text/qtextoption.cpp index b3b4c90d79..25760de0dc 100644 --- a/src/gui/text/qtextoption.cpp +++ b/src/gui/text/qtextoption.cpp @@ -145,7 +145,7 @@ QTextOption &QTextOption::operator=(const QTextOption &o) \sa tabArray(), setTabStop(), setTabs() */ -void QTextOption::setTabArray(QList tabStops) // Qt5: const ref +void QTextOption::setTabArray(const QList &tabStops) { if (!d) d = new QTextOptionPrivate; @@ -165,7 +165,7 @@ void QTextOption::setTabArray(QList tabStops) // Qt5: const ref \sa tabStops() */ -void QTextOption::setTabs(QList tabStops) // Qt5: const ref +void QTextOption::setTabs(const QList &tabStops) { if (!d) d = new QTextOptionPrivate; diff --git a/src/gui/text/qtextoption.h b/src/gui/text/qtextoption.h index a0a4c76282..f2a9f52a26 100644 --- a/src/gui/text/qtextoption.h +++ b/src/gui/text/qtextoption.h @@ -122,10 +122,10 @@ public: inline void setTabStop(qreal tabStop); inline qreal tabStop() const { return tab; } - void setTabArray(QList tabStops); + void setTabArray(const QList &tabStops); QList tabArray() const; - void setTabs(QList tabStops); + void setTabs(const QList &tabStops); QList tabs() const; void setUseDesignMetrics(bool b) { design = b; } -- cgit v1.2.3