Index: src/ch/AppHelper.h =================================================================== diff -u -N -rffb46a396ce20cda2e04020cf01c118ae81642b5 -r541304f4e098b4c7617b718287ab40646d5deb92 --- src/ch/AppHelper.h (.../AppHelper.h) (revision ffb46a396ce20cda2e04020cf01c118ae81642b5) +++ src/ch/AppHelper.h (.../AppHelper.h) (revision 541304f4e098b4c7617b718287ab40646d5deb92) @@ -30,13 +30,13 @@ bool SetAutorun(bool bState); // changes state of "run with system" option - bool IsFirstInstance() const { return m_bFirstInstance; }; + bool IsFirstInstance() const { return m_bFirstInstance; } - PCTSTR GetAppName() const { return m_pszAppName; }; - PCTSTR GetAppNameVer() const { return m_pszAppNameVer; }; - PCTSTR GetAppVersion() const { return m_pszAppVersion; }; + PCTSTR GetAppName() const { return m_pszAppName; } + PCTSTR GetAppNameVer() const { return m_pszAppNameVer; } + PCTSTR GetAppVersion() const { return m_pszAppVersion; } - PCTSTR GetProgramName() const { return m_pszProgramName; }; + PCTSTR GetProgramName() const { return m_pszProgramName; } bool GetProgramDataPath(CString& rStrPath); CString ExpandPath(CString strPath); Index: src/ch/CDragDropComboEx.h =================================================================== diff -u -N -r12ee49f6bf1f8921500ee2078e0a8c2d7b6d2a45 -r541304f4e098b4c7617b718287ab40646d5deb92 --- src/ch/CDragDropComboEx.h (.../CDragDropComboEx.h) (revision 12ee49f6bf1f8921500ee2078e0a8c2d7b6d2a45) +++ src/ch/CDragDropComboEx.h (.../CDragDropComboEx.h) (revision 541304f4e098b4c7617b718287ab40646d5deb92) @@ -32,7 +32,7 @@ void PreSubclassWindow() override; private: - DECLARE_MESSAGE_MAP(); + DECLARE_MESSAGE_MAP() }; #endif Index: src/ch/CDragDropListCtrl.h =================================================================== diff -u -N -r12ee49f6bf1f8921500ee2078e0a8c2d7b6d2a45 -r541304f4e098b4c7617b718287ab40646d5deb92 --- src/ch/CDragDropListCtrl.h (.../CDragDropListCtrl.h) (revision 12ee49f6bf1f8921500ee2078e0a8c2d7b6d2a45) +++ src/ch/CDragDropListCtrl.h (.../CDragDropListCtrl.h) (revision 541304f4e098b4c7617b718287ab40646d5deb92) @@ -32,7 +32,7 @@ void PreSubclassWindow() override; private: - DECLARE_MESSAGE_MAP(); + DECLARE_MESSAGE_MAP() }; #endif Index: src/ch/DirTreeCtrl.h =================================================================== diff -u -N -r12ee49f6bf1f8921500ee2078e0a8c2d7b6d2a45 -r541304f4e098b4c7617b718287ab40646d5deb92 --- src/ch/DirTreeCtrl.h (.../DirTreeCtrl.h) (revision 12ee49f6bf1f8921500ee2078e0a8c2d7b6d2a45) +++ src/ch/DirTreeCtrl.h (.../DirTreeCtrl.h) (revision 541304f4e098b4c7617b718287ab40646d5deb92) @@ -122,7 +122,7 @@ bool GetItemInfoTip(HTREEITEM hItem, CString* pTip); bool GetItemShellData(HTREEITEM hItem, int nFormat, PVOID pBuffer, int iSize); bool GetItemStruct(HTREEITEM hItem, PSHELLITEMDATA *ppsid); - bool IsEditing() const { return m_iEditType != 0; }; + bool IsEditing() const { return m_iEditType != 0; } virtual ~CDirTreeCtrl(); private: Index: src/ch/FolderDialog.cpp =================================================================== diff -u -N -ra6b040ed1b328ac7ad30882b07b7ca41e812bbb9 -r541304f4e098b4c7617b718287ab40646d5deb92 --- src/ch/FolderDialog.cpp (.../FolderDialog.cpp) (revision a6b040ed1b328ac7ad30882b07b7ca41e812bbb9) +++ src/ch/FolderDialog.cpp (.../FolderDialog.cpp) (revision 541304f4e098b4c7617b718287ab40646d5deb92) @@ -107,14 +107,14 @@ LRESULT CALLBACK EditWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { return InternalWindowProc(__g_pfEdit, hwnd, uMsg, wParam, lParam); -}; +} //////////////////////////////////////////////////////////////////////////// // procedure for combo box contained in comboboxex LRESULT CALLBACK ComboWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { return InternalWindowProc(__g_pfBaseCombo, hwnd, uMsg, wParam, lParam); -}; +} //////////////////////////////////////////////////////////////////////////// // other visual elements' window proc Index: src/ch/MiniViewDlg.h =================================================================== diff -u -N -r12ee49f6bf1f8921500ee2078e0a8c2d7b6d2a45 -r541304f4e098b4c7617b718287ab40646d5deb92 --- src/ch/MiniViewDlg.h (.../MiniViewDlg.h) (revision 12ee49f6bf1f8921500ee2078e0a8c2d7b6d2a45) +++ src/ch/MiniViewDlg.h (.../MiniViewDlg.h) (revision 541304f4e098b4c7617b718287ab40646d5deb92) @@ -68,7 +68,7 @@ void RefreshStatus(); void RecalcSize(int nHeight, bool bInitial); - UINT GetLanguageUpdateOptions() override { return LDF_NODIALOGSIZE; }; + UINT GetLanguageUpdateOptions() override { return LDF_NODIALOGSIZE; } void OnLanguageChanged() override; protected: Index: src/ch/PropertyListCtrl.h =================================================================== diff -u -N -r12ee49f6bf1f8921500ee2078e0a8c2d7b6d2a45 -r541304f4e098b4c7617b718287ab40646d5deb92 --- src/ch/PropertyListCtrl.h (.../PropertyListCtrl.h) (revision 12ee49f6bf1f8921500ee2078e0a8c2d7b6d2a45) +++ src/ch/PropertyListCtrl.h (.../PropertyListCtrl.h) (revision 541304f4e098b4c7617b718287ab40646d5deb92) @@ -145,10 +145,10 @@ void SetPropertyBkColor(COLORREF crColor); void SetHighlightColor(COLORREF crColor); void SetLineStyle(COLORREF crColor, int nStyle = PS_SOLID); - inline void SetBoldSelection(BOOL bBoldSelection) { m_bBoldSelection = bBoldSelection; }; - inline void SetTextColor(COLORREF crColor) { m_crTextColor = crColor; }; - inline void SetTextHighlightColor(COLORREF crColor) { m_crTextHighlightColor = crColor; }; - inline void SetPropertyTextColor(COLORREF crColor) { m_crPropertyTextColor = crColor; }; + inline void SetBoldSelection(BOOL bBoldSelection) { m_bBoldSelection = bBoldSelection; } + inline void SetTextColor(COLORREF crColor) { m_crTextColor = crColor; } + inline void SetTextHighlightColor(COLORREF crColor) { m_crTextHighlightColor = crColor; } + inline void SetPropertyTextColor(COLORREF crColor) { m_crPropertyTextColor = crColor; } // Add the data BOOL AddString(CString csText); Index: src/ch/Theme Helpers.h =================================================================== diff -u -N -r8068e0c351055554340ac9755d1bc846893bf2b8 -r541304f4e098b4c7617b718287ab40646d5deb92 --- src/ch/Theme Helpers.h (.../Theme Helpers.h) (revision 8068e0c351055554340ac9755d1bc846893bf2b8) +++ src/ch/Theme Helpers.h (.../Theme Helpers.h) (revision 541304f4e098b4c7617b718287ab40646d5deb92) @@ -40,7 +40,7 @@ HTHEME OpenThemeData(HWND hwnd, LPCWSTR pszClassList); HRESULT CloseThemeData(HTHEME hTheme); - bool IsThemeSupported() { return m_hThemesDll != nullptr; }; + bool IsThemeSupported() { return m_hThemesDll != nullptr; } BOOL IsAppThemed(); HRESULT DrawThemeEdge(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT* pDestRect, UINT uEdge, UINT uFlags, RECT* pContentRect); Index: src/ch/ch.h =================================================================== diff -u -N -rc085b65f1de24f25feab2bac2d5882abf04aabcf -r541304f4e098b4c7617b718287ab40646d5deb92 --- src/ch/ch.h (.../ch.h) (revision c085b65f1de24f25feab2bac2d5882abf04aabcf) +++ src/ch/ch.h (.../ch.h) (revision 541304f4e098b4c7617b718287ab40646d5deb92) @@ -39,7 +39,7 @@ void HtmlHelp(DWORD_PTR dwData, UINT nCmd) override; - PCTSTR GetHelpPath() const { return m_pszHelpFilePath; }; + PCTSTR GetHelpPath() const { return m_pszHelpFilePath; } friend int MsgBox(UINT uiID, UINT nType=MB_OK, UINT nIDHelp=0); Index: src/ch/shortcuts.h =================================================================== diff -u -N -rcb4e9d4b60d62b25ae2cf556c0642601af56c787 -r541304f4e098b4c7617b718287ab40646d5deb92 --- src/ch/shortcuts.h (.../shortcuts.h) (revision cb4e9d4b60d62b25ae2cf556c0642601af56c787) +++ src/ch/shortcuts.h (.../shortcuts.h) (revision 541304f4e098b4c7617b718287ab40646d5deb92) @@ -22,7 +22,7 @@ class CShortcut { public: - CShortcut() { }; + CShortcut() { } explicit CShortcut(const CString& strText); operator CString(); Index: src/libchcore/TOverlappedMemoryPool.h =================================================================== diff -u -N -rb941384e121190b6107f1c99b3233667e3daf4ce -r541304f4e098b4c7617b718287ab40646d5deb92 --- src/libchcore/TOverlappedMemoryPool.h (.../TOverlappedMemoryPool.h) (revision b941384e121190b6107f1c99b3233667e3daf4ce) +++ src/libchcore/TOverlappedMemoryPool.h (.../TOverlappedMemoryPool.h) (revision 541304f4e098b4c7617b718287ab40646d5deb92) @@ -40,7 +40,7 @@ size_t GetAvailableBufferCount() const; size_t GetSingleBufferSize() const; - TBufferListPtr GetBufferList() const;; + TBufferListPtr GetBufferList() const; private: std::vector> m_listAllBuffers; Index: src/libchcore/TString.h =================================================================== diff -u -N -rb26ced3298e3e7e51d91f3ac70b56746786da83b -r541304f4e098b4c7617b718287ab40646d5deb92 --- src/libchcore/TString.h (.../TString.h) (revision b26ced3298e3e7e51d91f3ac70b56746786da83b) +++ src/libchcore/TString.h (.../TString.h) (revision 541304f4e098b4c7617b718287ab40646d5deb92) @@ -64,19 +64,19 @@ TString operator+(const wchar_t* pszSrc) const; const TString& operator+=(const wchar_t* pszSrc); - bool operator<(const wchar_t* psz) const { return Compare(psz) < 0; }; - bool operator<=(const wchar_t* psz) const { return Compare(psz) <= 0; }; - bool operator==(const wchar_t* psz) const { return Compare(psz) == 0; }; - bool operator>=(const wchar_t* psz) const { return Compare(psz) >= 0; }; - bool operator>(const wchar_t* psz) const { return Compare(psz) > 0; }; - bool operator!=(const wchar_t* psz) const { return Compare(psz) != 0; }; + bool operator<(const wchar_t* psz) const { return Compare(psz) < 0; } + bool operator<=(const wchar_t* psz) const { return Compare(psz) <= 0; } + bool operator==(const wchar_t* psz) const { return Compare(psz) == 0; } + bool operator>=(const wchar_t* psz) const { return Compare(psz) >= 0; } + bool operator>(const wchar_t* psz) const { return Compare(psz) > 0; } + bool operator!=(const wchar_t* psz) const { return Compare(psz) != 0; } - bool operator<(const TString& str) const { return Compare(str) < 0; }; - bool operator<=(const TString& str) const { return Compare(str) <= 0; }; - bool operator==(const TString& str) const { return Compare(str) == 0; }; - bool operator>=(const TString& str) const { return Compare(str) >= 0; }; - bool operator>(const TString& str) const { return Compare(str) >= 0; }; - bool operator!=(const TString& str) const { return Compare(str) != 0; }; + bool operator<(const TString& str) const { return Compare(str) < 0; } + bool operator<=(const TString& str) const { return Compare(str) <= 0; } + bool operator==(const TString& str) const { return Compare(str) == 0; } + bool operator>=(const TString& str) const { return Compare(str) >= 0; } + bool operator>(const TString& str) const { return Compare(str) >= 0; } + bool operator!=(const TString& str) const { return Compare(str) != 0; } // appends the given TString to this void Append(const wchar_t* pszSrc); ///< Appends an unicode TString to the TString object Index: src/libictranslate/LanguageDialog.h =================================================================== diff -u -N -r19b135b50b55b75d008526a799344bda9a62dc22 -r541304f4e098b4c7617b718287ab40646d5deb92 --- src/libictranslate/LanguageDialog.h (.../LanguageDialog.h) (revision 19b135b50b55b75d008526a799344bda9a62dc22) +++ src/libictranslate/LanguageDialog.h (.../LanguageDialog.h) (revision 541304f4e098b4c7617b718287ab40646d5deb92) @@ -193,7 +193,7 @@ static void SetResManager(CResourceManager* prm) { m_prm = prm; - }; + } // creation INT_PTR DoModal() override; @@ -203,7 +203,7 @@ CFont* GetFont() { return m_pFont ? m_pFont : ((CDialog*)this)->GetFont(); - }; + } afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo); afx_msg void OnContextMenu(CWnd* pWnd, CPoint point); @@ -220,16 +220,16 @@ virtual UINT GetLanguageUpdateOptions() { return 0; - }; + } virtual void OnLanguageChanged() { - }; + } void Cleanup(); virtual BOOL OnTooltipText(UINT /*uiID*/, TOOLTIPTEXT* /*pTip*/) { return FALSE; - }; + } BOOL OnInitDialog() override; void OnCancel() override; void OnOK() override; Index: src/libictranslate/ResourceManager.h =================================================================== diff -u -N -r19b135b50b55b75d008526a799344bda9a62dc22 -r541304f4e098b4c7617b718287ab40646d5deb92 --- src/libictranslate/ResourceManager.h (.../ResourceManager.h) (revision 19b135b50b55b75d008526a799344bda9a62dc22) +++ src/libictranslate/ResourceManager.h (.../ResourceManager.h) (revision 541304f4e098b4c7617b718287ab40646d5deb92) @@ -142,43 +142,43 @@ PCTSTR GetLangName() const { return m_pszLngName; - }; + } void SetFontFace(PCTSTR psz); PCTSTR GetFontFace() const { return m_pszFontFace; - }; + } void SetPointSize(WORD wSize) { m_wPointSize = wSize; m_bModified = true; - }; + } WORD GetPointSize() const { return m_wPointSize; - }; + } void SetDirection(bool brtl) { m_bRTL = brtl; m_bModified = true; - }; + } bool GetDirection() const { return m_bRTL; - }; + } void SetHelpName(PCTSTR psz); PCTSTR GetHelpName() const { return m_pszHelpName; - }; + } void SetAuthor(PCTSTR psz); PCTSTR GetAuthor() const { return m_pszAuthor; - }; + } bool IsModified() const { @@ -230,7 +230,7 @@ void SetCallback(PFNNOTIFYCALLBACK pfn) { m_pfnCallback = pfn; - }; + } void Scan(LPCTSTR pszFolder, std::vector* pvData); bool SetLanguage(PCTSTR pszPath); Index: src/libictranslate/cfg.h =================================================================== diff -u -N -r1366914bd5d2f7fa72cad0c7012184e1a452a89c -r541304f4e098b4c7617b718287ab40646d5deb92 --- src/libictranslate/cfg.h (.../cfg.h) (revision 1366914bd5d2f7fa72cad0c7012184e1a452a89c) +++ src/libictranslate/cfg.h (.../cfg.h) (revision 541304f4e098b4c7617b718287ab40646d5deb92) @@ -99,9 +99,9 @@ /** \name Class lock/unlock functions */ /**@{*/ /// Locks the config class for one thread - void lock() { m_lock.Lock(); }; + void lock() { m_lock.Lock(); } /// Unlocks the class - void unlock() { m_lock.Unlock(); }; + void unlock() { m_lock.Unlock(); } /**@}*/ // property type management Index: src/libictranslate/config_property.h =================================================================== diff -u -N -ra27d1acf1bda3c25b6dcce0d0eb0278009ce63ae -r541304f4e098b4c7617b718287ab40646d5deb92 --- src/libictranslate/config_property.h (.../config_property.h) (revision a27d1acf1bda3c25b6dcce0d0eb0278009ce63ae) +++ src/libictranslate/config_property.h (.../config_property.h) (revision 541304f4e098b4c7617b718287ab40646d5deb92) @@ -78,19 +78,19 @@ /// Sets a property type void init(const wchar_t* pszName, unsigned int uiType, bool bClear=true); /// Retrieves a property type (with flags) - unsigned int get_type() const { return m_uiPropType; }; + unsigned int get_type() const { return m_uiPropType; } /// Checks if the property is array-based - bool is_array() const { return (m_uiPropType & flag_array) != false; }; + bool is_array() const { return (m_uiPropType & flag_array) != false; } /// Sets a property name - void set_name(const wchar_t* pszName) { m_pszName=copy_string(pszName); }; + void set_name(const wchar_t* pszName) { m_pszName=copy_string(pszName); } /// Gets a property name - const wchar_t* get_name() const { return m_pszName; }; + const wchar_t* get_name() const { return m_pszName; } /// Sets the modified flag - void set_modified(bool bModified) { if (bModified) m_uiPropType |= flag_modified; else m_uiPropType &= ~flag_modified; }; + void set_modified(bool bModified) { if (bModified) m_uiPropType |= flag_modified; else m_uiPropType &= ~flag_modified; } /// Gets the modified flag - bool is_modified() const { return (m_uiPropType & flag_modified) != false; }; + bool is_modified() const { return (m_uiPropType & flag_modified) != false; } /**@}*/ /** \brief Property values */