src/types.cc

changeset 579
4e140de264d2
parent 574
10874674fe30
child 590
7aec744ce97b
equal deleted inserted replaced
578:a86ae85a277c 579:4e140de264d2
344 m_textstream = null; 344 m_textstream = null;
345 } 345 }
346 346
347 File::File (str path, OpenType rtype) 347 File::File (str path, OpenType rtype)
348 { m_file = null; 348 { m_file = null;
349 m_path = path;
349 open (path, rtype); 350 open (path, rtype);
350 } 351 }
351 352
352 File::File (FILE* fp, OpenType rtype) 353 File::File (FILE* fp, OpenType rtype)
353 { m_file = null; 354 { m_file = null;
391 else 392 else
392 result = m_file->open (mode); 393 result = m_file->open (mode);
393 394
394 if (result) 395 if (result)
395 { m_textstream = new QTextStream (m_file); 396 { m_textstream = new QTextStream (m_file);
397 m_path = path;
396 return true; 398 return true;
397 } 399 }
398 400
399 delete m_file; 401 delete m_file;
400 m_file = null; 402 m_file = null;

mercurial