diff options
-rw-r--r-- | src/gui/text/qtextoption.cpp | 4 | ||||
-rw-r--r-- | src/gui/text/qtextoption.h | 4 |
2 files changed, 4 insertions, 4 deletions
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<qreal> tabStops) // Qt5: const ref +void QTextOption::setTabArray(const QList<qreal> &tabStops) { if (!d) d = new QTextOptionPrivate; @@ -165,7 +165,7 @@ void QTextOption::setTabArray(QList<qreal> tabStops) // Qt5: const ref \sa tabStops() */ -void QTextOption::setTabs(QList<QTextOption::Tab> tabStops) // Qt5: const ref +void QTextOption::setTabs(const QList<QTextOption::Tab> &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<qreal> tabStops); + void setTabArray(const QList<qreal> &tabStops); QList<qreal> tabArray() const; - void setTabs(QList<Tab> tabStops); + void setTabs(const QList<Tab> &tabStops); QList<Tab> tabs() const; void setUseDesignMetrics(bool b) { design = b; } |