Use member initialization lists [-Weffc++] (#270)

This commit is contained in:
J-P Nurmi
2015-02-28 21:59:01 +01:00
parent a1165cfcca
commit 6a6bb648d1
26 changed files with 63 additions and 110 deletions
+2 -7
View File
@@ -33,15 +33,10 @@
CString CFile::m_sHomePath;
CFile::CFile() {
m_iFD = -1;
ResetError();
CFile::CFile() : CFile("") {
}
CFile::CFile(const CString& sLongName) {
m_iFD = -1;
ResetError();
CFile::CFile(const CString& sLongName) : m_sBuffer(""), m_iFD(-1), m_bHadError(false), m_sLongName(""), m_sShortName("") {
SetFileName(sLongName);
}