summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextdocument.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2019-05-07 17:49:32 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2019-05-08 20:28:44 +0000
commit82b26444a456d4d5ddf5f483b7766977659bee35 (patch)
treeef9ccb72aca12b1741a75c49101030ced96adf23 /src/gui/text/qtextdocument.cpp
parent76716c4a9adc3f9aeb251d3ebe4d1d0be38b97ee (diff)
Change QTextMarkdownWriter to pass by const pointer and QAIM
- QObjects are always passed by pointer not by reference, by convention - writeTable() takes QAIM rather than QATM to make testing via QStandardItemModel possible in the future Change-Id: I5bc6b8cd9709da4fb5d57d98fa22e0cb34360944 Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
Diffstat (limited to 'src/gui/text/qtextdocument.cpp')
-rw-r--r--src/gui/text/qtextdocument.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtextdocument.cpp b/src/gui/text/qtextdocument.cpp
index 0a59bfb838..b5ff72e706 100644
--- a/src/gui/text/qtextdocument.cpp
+++ b/src/gui/text/qtextdocument.cpp
@@ -3301,7 +3301,7 @@ QString QTextDocument::toMarkdown(QTextDocument::MarkdownFeatures features) cons
QString ret;
QTextStream s(&ret);
QTextMarkdownWriter w(s, features);
- if (w.writeAll(*this))
+ if (w.writeAll(this))
return ret;
return QString();
}