summaryrefslogtreecommitdiff
path: root/src/gui/text/qtexttable.cpp
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2011-10-18 16:44:54 +0200
committerQt by Nokia <qt-info@nokia.com>2012-02-21 21:05:25 +0100
commit432a75604819d9ed4143036c7cafa72106c768e0 (patch)
tree54ed7c217b3b4e22c7066e667f47534d4e025c34 /src/gui/text/qtexttable.cpp
parentc8160ea1dbb5c20856c9c385053f8e5611a9f4d6 (diff)
downloadqtbase-432a75604819d9ed4143036c7cafa72106c768e0.tar.gz
replace 'const QChar &' with 'QChar ' where appropriate
as QChar is actually an ushort and there is no point in taking its address. Merge-request: 69 Change-Id: Idcc9d621e5627514ade006aa12a789a88929d48b Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/gui/text/qtexttable.cpp')
-rw-r--r--src/gui/text/qtexttable.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/text/qtexttable.cpp b/src/gui/text/qtexttable.cpp
index 35adfd16b2..12af933fd0 100644
--- a/src/gui/text/qtexttable.cpp
+++ b/src/gui/text/qtexttable.cpp
@@ -397,7 +397,7 @@ int QTextTablePrivate::findCellIndex(int fragment) const
return it - cells.begin();
}
-void QTextTablePrivate::fragmentAdded(const QChar &type, uint fragment)
+void QTextTablePrivate::fragmentAdded(QChar type, uint fragment)
{
dirty = true;
if (blockFragmentUpdates)
@@ -415,7 +415,7 @@ void QTextTablePrivate::fragmentAdded(const QChar &type, uint fragment)
QTextFramePrivate::fragmentAdded(type, fragment);
}
-void QTextTablePrivate::fragmentRemoved(const QChar &type, uint fragment)
+void QTextTablePrivate::fragmentRemoved(QChar type, uint fragment)
{
dirty = true;
if (blockFragmentUpdates)