[quarkplayer] r1419 committed - Add some comments

0 views
Skip to first unread message

quark...@googlecode.com

unread,
Feb 16, 2011, 9:19:11 AM2/16/11
to quarkplay...@googlegroups.com
Revision: 1419
Author: tkrotoff
Date: Wed Feb 16 06:18:21 2011
Log: Add some comments
http://code.google.com/p/quarkplayer/source/detail?r=1419

Modified:
/trunk/libs/Logger/XmlFileOutput.cpp

=======================================
--- /trunk/libs/Logger/XmlFileOutput.cpp Fri Jan 21 09:19:32 2011
+++ /trunk/libs/Logger/XmlFileOutput.cpp Wed Feb 16 06:18:21 2011
@@ -40,9 +40,11 @@

_xmlWriter = NULL;

+ //Does not fail to open the file even if already open!
+ //QtLockedFile can be a solution here
QFile * file = new QFile(fileName);
if (!file->open(QIODevice::WriteOnly | QIODevice::Text)) {
- LoggerCritical() << "Couldn't open file:" << fileName;
+ LoggerCritical() << "Couldn't open file:" << fileName << "error:" <<
file->errorString();
} else {
_xmlWriter = new QXmlStreamWriter(file);
_xmlWriter->setAutoFormatting(true);

Reply all
Reply to author
Forward
0 new messages