dumpdoc: Adapt to QFile::open being [[nodiscard]]


As a drive by: Return early if opening the output file fails.

Fixes: QTBUG-132205
Change-Id: I571e725db52fb47510f3ba4982a8debe91314e50
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
commit34616c5e788ee4a8f603e255e1059b9d8d606a4d
parented38b430e585ef4dc8a393dd1dc99a3f3ae6267f
authorOliver Wolff <oliver.wolff@qt.io>
committerOliver Wolff <oliver.wolff@qt.io>
commit timeMon, 16 Dec 2024 08:20:18 +0100