diff options
author | Zhang Sheng <zhangsheng@uniontech.com> | 2020-11-16 11:19:17 +0800 |
---|---|---|
committer | Zhang Sheng <zhangsheng@uniontech.com> | 2020-11-16 12:53:37 +0000 |
commit | e13173c112b729da8f53dd2e81e8116a1ed857cf (patch) | |
tree | 49c2bce0c3349eebd0f2b62c80a1b7168ae45dc2 /src/gui/text/qtextcursor.cpp | |
parent | 802e5a45baf3ac7da2cb3be06d10bdd69696fcae (diff) |
Adjust code format, add space after 'if'
Change-Id: Ice081c891ff7f4b766f49dd4bd5cf18c30237acf
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/gui/text/qtextcursor.cpp')
-rw-r--r-- | src/gui/text/qtextcursor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/text/qtextcursor.cpp b/src/gui/text/qtextcursor.cpp index c579eca1ff..a27ef81500 100644 --- a/src/gui/text/qtextcursor.cpp +++ b/src/gui/text/qtextcursor.cpp @@ -2185,7 +2185,7 @@ QTextTable *QTextCursor::insertTable(int rows, int cols) */ QTextTable *QTextCursor::insertTable(int rows, int cols, const QTextTableFormat &format) { - if(!d || !d->priv || rows == 0 || cols == 0) + if (!d || !d->priv || rows == 0 || cols == 0) return nullptr; int pos = d->position; @@ -2205,7 +2205,7 @@ QTextTable *QTextCursor::insertTable(int rows, int cols, const QTextTableFormat */ QTextTable *QTextCursor::currentTable() const { - if(!d || !d->priv) + if (!d || !d->priv) return nullptr; QTextFrame *frame = d->priv->frameAt(d->position); @@ -2242,7 +2242,7 @@ QTextFrame *QTextCursor::insertFrame(const QTextFrameFormat &format) */ QTextFrame *QTextCursor::currentFrame() const { - if(!d || !d->priv) + if (!d || !d->priv) return nullptr; return d->priv->frameAt(d->position); |