mirror of
https://github.com/znc/znc.git
synced 2026-07-05 17:31:06 +02:00
Use member initialization lists [-Weffc++] (#270)
This commit is contained in:
+2
-7
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user