class PopString : public CString\r
{\r
public:\r
- PopString(String & final) : CString(final.c_str()), m_final(final)\r
- {\r
+ explicit PopString(String & final) : CString(final.c_str()), m_final(final)\r
+ {\r
}\r
\r
- ~PopString()\r
- {\r
- m_final = (PCTSTR) *this;\r
- }\r
+ ~PopString()\r
+ {\r
+ m_final = (PCTSTR) *this;\r
+ }\r
private:\r
- PopString(const PopString &); // private copy constructor to prevent copying\r
- PopString & operator=(const PopString &); // private copy operator\r
+ PopString(const PopString &); // private copy constructor to prevent copying\r
+ PopString & operator=(const PopString &); // private copy operator\r
\r
- String & m_final;\r
+ String & m_final;\r
};\r
\r
inline void DDX_Check(CDataExchange* pDX, int nIDC, bool& value)\r
// All this object does is forward ShouldAbort calls to its containing CDiffThread
- DiffThreadAbortable(CDiffThread * diffthread) : m_diffthread(diffthread) { }
+ explicit DiffThreadAbortable(CDiffThread * diffthread) : m_diffthread(diffthread) { }
CDiffThread * m_diffthread;
};
class WorkCompletedNotification: public Poco::Notification
{
public:
- WorkCompletedNotification(DIFFITEM& di): m_di(di) {}
+ explicit WorkCompletedNotification(DIFFITEM& di): m_di(di) {}
DIFFITEM& data() const { return m_di; }
private:
DIFFITEM& m_di;
struct FileCmpReport: public IFileCmpReport
{
- FileCmpReport(CDirView *pDirView) : m_pDirView(pDirView) {}
+ explicit FileCmpReport(CDirView *pDirView) : m_pDirView(pDirView) {}
bool operator()(REPORT_TYPE nReportType, IListCtrl *pList, int nIndex, const String &sDestDir, String &sLinkPath)
{
const CDiffContext& ctxt = m_pDirView->GetDiffContext();
class DirViewColItems
{
public:
- DirViewColItems(int nDirs):
+ explicit DirViewColItems(int nDirs):
m_nDirs(nDirs), m_numcols(-1), m_dispcols(-1) {}
String GetColRegValueNameBase(int col) const;
int GetColDefaultOrder(int col) const;
class IListCtrlImpl : public IListCtrl\r
{\r
public:\r
- IListCtrlImpl(HWND hwndListCtrl) : m_hwndListCtrl(hwndListCtrl)\r
+ explicit IListCtrlImpl(HWND hwndListCtrl) : m_hwndListCtrl(hwndListCtrl)\r
{\r
}\r
\r
class RescanSuppress
{
public:
- RescanSuppress(CMergeDoc & doc) : m_doc(doc)
+ explicit RescanSuppress(CMergeDoc & doc) : m_doc(doc)
{
m_bSuppress = true;
m_bPrev = doc.m_bEnableRescan;