summaryrefslogtreecommitdiff
path: root/src/qdoc/qdoc/docparser.h
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2023-04-14 11:06:40 +0200
committerPaul Wicking <paul.wicking@qt.io>2023-04-28 11:03:53 +0200
commitacae7fc8f30a4a1eabe6a8439e6f8143b4458847 (patch)
tree2f6bc3ed29a91f1dd7d0de13cebf77d1eaacdecf /src/qdoc/qdoc/docparser.h
parent3d814edf5710367bd1e281521a1a1d232d83eef1 (diff)
downloadqttools-acae7fc8f30a4a1eabe6a8439e6f8143b4458847.tar.gz
QDoc: Refactor DocParser::insertTarget
A recent refactoring extracted a method from `DocParser::insertTarget` that allows and early return. This makes the else branch redundant, as control will always exit the method if the `if` condition is satisfied. This allows for flattening the method further. This change thus flattens the method by removing the else statement and flattening the code in that branch. The remaining code features another if/else check. This change adds a return statement to the if statement, allowing the removal of the following else statement and the flattening of that branch, too. Task-number: QTBUG-113126 Change-Id: If0e7436f8bb98924dd54c9d9f04a8a7a4d7566a9 Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/qdoc/qdoc/docparser.h')
0 files changed, 0 insertions, 0 deletions