]> git.sesse.net Git - kdenlive/commit
titledocument.cpp: check return value from open()
authorMikko Rapeli <mikko.rapeli@iki.fi>
Fri, 10 Aug 2012 12:17:16 +0000 (14:17 +0200)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 2 Sep 2012 09:40:50 +0000 (11:40 +0200)
commit0eec75fae8e6c65857a4ed2abd966c901b05bfab
tree83596fc3d8527dee9ea56a9cb5fdd780aa28bdba
parenta4416e854b8c628c20a74bbaf729fa681fd5af25
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());
src/titledocument.cpp