qaengine/src/TaskDriver.cxx
//-------------------------------------------------------------------------------
// Sets project file name and creates a project tree from the given project file.
//-------------------------------------------------------------------------------
Sets project file name and creates a project tree from the given project file.
Sets project file name and creates a project tree from the given project file .
int TaskDriver::openProject(string fileName) {
	if(m_durtyProject && m_strProject.length()>0) {
		saveProject(m_strProject);
	    m_durtyProject = 0;
	}
	if(m_pProject) delete m_pProject;
    m_pProject= new ProjectTree();
	if(m_pProject->open(fileName)!=0) {
		delete m_pProject;
		m_pProject = NULL;
		return -1;
	}
	m_strProject = fileName;
	return 0;
}
int TaskDriver :: openProject ( string fileName ) { if ( m_durtyProject && m_strProject . length ( ) > 0 ) { saveProject ( m_strProject ) ; m_durtyProject = 0 ; } if ( m_pProject ) delete m_pProject ; m_pProject = new ProjectTree ( ) ; if ( m_pProject -> open ( fileName ) != 0 ) { delete m_pProject ; m_pProject = NULL ; return -1 ; } m_strProject = fileName ; return 0 ; }
Sets project file name and creates a project tree from the given project file.
Sets project file name and creates a project tree from the given project file .