Skip to content
Commit 0eec75fa authored by Mikko Rapeli's avatar Mikko Rapeli Committed by Jean-Baptiste Mardelle
Browse files

titledocument.cpp: check return value from open()

Fixes Coverity CID 709282: Unchecked return value (CHECKED_RETURN)
Calling function "QFile::open(QFlags<QIODevice::OpenModeFlag>)" without checking return value (as is done elsewhere 45 out of 47 times).
No check of the return value of "xmlf.open(QIODevice::OpenMode(_ZN9QIODevice9WriteOnlyE))".
300    xmlf.open(QIODevice::WriteOnly);
301    xmlf.write(doc.toString().toUtf8());
parent a4416e85
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment