forked from qt-creator/qt-creator
Replace set[Plain]Text(QString()) with clear()
...where applicable. Shorter, faster, more semantic. Change-Id: Ifb1cf200f489f62a79e12c761e98a846992744dc Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -112,7 +112,7 @@ bool FormWindowFile::setContents(const QByteArray &contents)
|
||||
if (Designer::Constants::Internal::debug)
|
||||
qDebug() << Q_FUNC_INFO << contents.size();
|
||||
|
||||
document()->setPlainText(QString());
|
||||
document()->clear();
|
||||
|
||||
QTC_ASSERT(m_formWindow, return false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user