Skip to content

Commit d39e61f

Browse files
author
github-actions
committed
Update generated docs for 13496a4
1 parent 118b4a8 commit d39e61f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

main/int/main_8cpp_source.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -440,11 +440,10 @@
440440
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno"> 336</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="code hl_classRef" href="https://doc.qt.io/qt-5/qstring.html">QString</a> &amp;error: cliErrors) {</div>
441441
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno"> 337</span> showCliError(error);</div>
442442
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno"> 338</span> }</div>
443-
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno"> 339</span> <span class="keywordflow">if</span> (!cliErrors.<a class="code hl_functionRef" href="https://doc.qt.io/qt-5/qlist.html#isEmpty">isEmpty</a>()) {</div>
444-
<div class="line"><a id="l00340" name="l00340"></a><span class="lineno"> 340</span> <span class="keywordflow">return</span> EXIT_FAILURE;</div>
445-
<div class="line"><a id="l00341" name="l00341"></a><span class="lineno"> 341</span> }</div>
446-
<div class="line"><a id="l00342" name="l00342"></a><span class="lineno"> 342</span> <span class="keywordflow">return</span> (command-&gt;<a class="code hl_slot" href="classAbstractCommand.html#a549d6f1071016fe56d20d2ba81575b2c">start</a>()) ? <a class="code hl_functionRef" href="https://doc.qt.io/qt-5/qcoreapplication.html#exec">QCoreApplication::exec</a>() : EXIT_FAILURE;</div>
447-
<div class="line"><a id="l00343" name="l00343"></a><span class="lineno"> 343</span>}</div>
443+
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno"> 339</span> <span class="keyword">const</span> <span class="keywordtype">int</span> result = ((cliErrors.<a class="code hl_functionRef" href="https://doc.qt.io/qt-5/qlist.html#isEmpty">isEmpty</a>()) &amp;&amp; (command-&gt;<a class="code hl_slot" href="classAbstractCommand.html#a549d6f1071016fe56d20d2ba81575b2c">start</a>())) ? <a class="code hl_functionRef" href="https://doc.qt.io/qt-5/qcoreapplication.html#exec">QCoreApplication::exec</a>() : EXIT_FAILURE;</div>
444+
<div class="line"><a id="l00340" name="l00340"></a><span class="lineno"> 340</span> <span class="keyword">delete</span> command; <span class="comment">// We don&#39;t strictly need to do this, but it does fix QTBUG-119063, and is probably good practice.</span></div>
445+
<div class="line"><a id="l00341" name="l00341"></a><span class="lineno"> 341</span> <span class="keywordflow">return</span> result;</div>
446+
<div class="line"><a id="l00342" name="l00342"></a><span class="lineno"> 342</span>}</div>
448447
<div class="ttc" id="aclassAbstractCommand_html"><div class="ttname"><a href="classAbstractCommand.html">AbstractCommand</a></div><div class="ttdoc">The AbstractCommand class provides a consistent base for the classes that implement CLI commands.</div><div class="ttdef"><b>Definition</b> <a href="abstractcommand_8h_source.html#l00014">abstractcommand.h:15</a></div></div>
449448
<div class="ttc" id="aclassAbstractCommand_html_a549d6f1071016fe56d20d2ba81575b2c"><div class="ttname"><a href="classAbstractCommand.html#a549d6f1071016fe56d20d2ba81575b2c">AbstractCommand::start</a></div><div class="ttdeci">virtual bool start()=0</div><div class="ttdoc">Begins the functionality of this command, and returns true if begun successfully, false otherwise.</div></div>
450449
<div class="ttc" id="aclassAbstractCommand_html_ad827a18a24776efeb955739459d48f7d"><div class="ttname"><a href="classAbstractCommand.html#ad827a18a24776efeb955739459d48f7d">AbstractCommand::processOptions</a></div><div class="ttdeci">virtual QStringList processOptions(const QCommandLineParser &amp;parser)</div><div class="ttdoc">Processes the relevant options from the command line parser.</div><div class="ttdef"><b>Definition</b> <a href="abstractcommand_8cpp_source.html#l00265">abstractcommand.cpp:265</a></div></div>

0 commit comments

Comments
 (0)