qtmobility/tools/icheck/parsemanager.cpp
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
   519 bool ParseManager::checkAllMetadatas(ParseManager* pInterfaceParserManager, QString resultfile)
   519 bool ParseManager::checkAllMetadatas(ParseManager* pInterfaceParserManager, QString resultfile)
   520 {
   520 {
   521     bool ret = true;
   521     bool ret = true;
   522     
   522     
   523     //Create output file
   523     //Create output file
   524     if(resultfile != "" && ::m_resultFile == 0){
   524     if(!resultfile.isEmpty() && ::m_resultFile == 0){
   525         ::m_resultFile = new QFile(resultfile);
   525         ::m_resultFile = new QFile(resultfile);
   526         if (!::m_resultFile->open(QFile::WriteOnly | QFile::Truncate)) {
   526         if (!::m_resultFile->open(QFile::WriteOnly | QFile::Truncate)) {
   527             delete ::m_resultFile;
   527             delete ::m_resultFile;
   528             ::m_resultFile = 0;
   528             ::m_resultFile = 0;
   529          }
   529          }