Code enhancement: Use C++11 =default & =delete for the constructor & destructor

This commit is contained in:
Don HO 2019-08-19 02:05:21 +02:00
parent c34d3c9a4b
commit 93a9962fde
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E
38 changed files with 170 additions and 177 deletions

View File

@ -45,7 +45,7 @@ struct PluginCommand
struct PluginInfo struct PluginInfo
{ {
PluginInfo() {} PluginInfo() = default;
~PluginInfo() ~PluginInfo()
{ {
if (_pluginMenu) if (_pluginMenu)
@ -55,17 +55,17 @@ struct PluginInfo
::FreeLibrary(_hLib); ::FreeLibrary(_hLib);
} }
HINSTANCE _hLib = NULL; HINSTANCE _hLib = nullptr;
HMENU _pluginMenu = NULL; HMENU _pluginMenu = nullptr;
PFUNCSETINFO _pFuncSetInfo = NULL; PFUNCSETINFO _pFuncSetInfo = nullptr;
PFUNCGETNAME _pFuncGetName = NULL; PFUNCGETNAME _pFuncGetName = nullptr;
PBENOTIFIED _pBeNotified = NULL; PBENOTIFIED _pBeNotified = nullptr;
PFUNCGETFUNCSARRAY _pFuncGetFuncsArray = NULL; PFUNCGETFUNCSARRAY _pFuncGetFuncsArray = nullptr;
PMESSAGEPROC _pMessageProc = NULL; PMESSAGEPROC _pMessageProc = nullptr;
PFUNCISUNICODE _pFuncIsUnicode = NULL; PFUNCISUNICODE _pFuncIsUnicode = nullptr;
FuncItem *_funcItems = NULL; FuncItem *_funcItems = nullptr;
int _nbFuncItem = 0; int _nbFuncItem = 0;
generic_string _moduleName; generic_string _moduleName;
generic_string _funcName; generic_string _funcName;

View File

@ -37,13 +37,13 @@ const int extNameLen = 32;
class RegExtDlg : public StaticDialog class RegExtDlg : public StaticDialog
{ {
public : public :
RegExtDlg() : _isCustomize(false){}; RegExtDlg() = default;
~RegExtDlg(){}; ~RegExtDlg() = default;
void doDialog(bool isRTL = false); void doDialog(bool isRTL = false);
private : private :
bool _isCustomize; bool _isCustomize = false;
INT_PTR CALLBACK run_dlgProc(UINT Message, WPARAM wParam, LPARAM lParam); INT_PTR CALLBACK run_dlgProc(UINT Message, WPARAM wParam, LPARAM lParam);

View File

@ -24,7 +24,7 @@ enum hashType {hash_md5, hash_sha256};
class HashFromFilesDlg : public StaticDialog class HashFromFilesDlg : public StaticDialog
{ {
public : public :
HashFromFilesDlg() : StaticDialog() {}; HashFromFilesDlg() = default;
void doDialog(bool isRTL = false); void doDialog(bool isRTL = false);
virtual void destroy() {}; virtual void destroy() {};
@ -38,7 +38,7 @@ protected :
class HashFromTextDlg : public StaticDialog class HashFromTextDlg : public StaticDialog
{ {
public : public :
HashFromTextDlg() : StaticDialog() {}; HashFromTextDlg() = default;
void doDialog(bool isRTL = false); void doDialog(bool isRTL = false);
virtual void destroy() {}; virtual void destroy() {};

View File

@ -36,6 +36,7 @@ const size_t tagMaxLen = 256;
class ScintillaEditView; class ScintillaEditView;
struct MatchedCharInserted { struct MatchedCharInserted {
MatchedCharInserted() = delete;
char _c; char _c;
int _pos; int _pos;
MatchedCharInserted(char c, int pos) : _c(c), _pos(pos) {}; MatchedCharInserted(char c, int pos) : _c(c), _pos(pos) {};

View File

@ -117,10 +117,10 @@ public:
private: private:
struct LoadedFileFormat { struct LoadedFileFormat {
LoadedFileFormat() {}; LoadedFileFormat() = default;
LangType _language; LangType _language = L_TEXT;
int _encoding; int _encoding = 0;
EolType _eolFormat; EolType _eolFormat = EolType::osdefault;
}; };
FileManager() = default; FileManager() = default;

View File

@ -227,12 +227,12 @@ friend class FindIncrementDlg;
public : public :
static FindOption _options; static FindOption _options;
static FindOption* _env; static FindOption* _env;
FindReplaceDlg() : StaticDialog(), _pFinder(NULL), _isRTL(false),\ FindReplaceDlg() {
_fileNameLenMax(1024) {
_uniFileName = new char[(_fileNameLenMax + 3) * 2]; _uniFileName = new char[(_fileNameLenMax + 3) * 2];
_winVer = (NppParameters::getInstance()).getWinVersion(); _winVer = (NppParameters::getInstance()).getWinVersion();
_env = &_options; _env = &_options;
}; };
~FindReplaceDlg(); ~FindReplaceDlg();
void init(HINSTANCE hInst, HWND hPere, ScintillaEditView **ppEditView) { void init(HINSTANCE hInst, HWND hPere, ScintillaEditView **ppEditView) {
@ -354,8 +354,8 @@ private :
RECT _countInSelFramePos, _replaceInSelFramePos; RECT _countInSelFramePos, _replaceInSelFramePos;
RECT _countInSelCheckPos, _replaceInSelCheckPos; RECT _countInSelCheckPos, _replaceInSelCheckPos;
ScintillaEditView **_ppEditView; ScintillaEditView **_ppEditView = nullptr;
Finder *_pFinder; Finder *_pFinder = nullptr;
std::vector<Finder *> _findersOfFinder; std::vector<Finder *> _findersOfFinder;
@ -363,22 +363,21 @@ private :
HWND _2ButtonsTip = nullptr; HWND _2ButtonsTip = nullptr;
bool _isRTL; bool _isRTL = false;
int _findAllResult; int _findAllResult;
TCHAR _findAllResultStr[1024]; TCHAR _findAllResultStr[1024];
int _fileNameLenMax; int _fileNameLenMax = 1024;
char *_uniFileName; char *_uniFileName;
TabBar _tab; TabBar _tab;
winVer _winVer; winVer _winVer = winVer::WV_UNKNOWN;
StatusBar _statusBar; StatusBar _statusBar;
FindStatus _statusbarFindStatus; FindStatus _statusbarFindStatus;
HFONT _hMonospaceFont = nullptr; HFONT _hMonospaceFont = nullptr;
void enableReplaceFunc(bool isEnable); void enableReplaceFunc(bool isEnable);
void enableFindInFilesControls(bool isEnable = true); void enableFindInFilesControls(bool isEnable = true);
void enableFindInFilesFunc(); void enableFindInFilesFunc();
@ -417,7 +416,7 @@ private :
class FindIncrementDlg : public StaticDialog class FindIncrementDlg : public StaticDialog
{ {
public : public :
FindIncrementDlg() {}; FindIncrementDlg() = default;
void init(HINSTANCE hInst, HWND hPere, FindReplaceDlg *pFRDlg, bool isRTL = false); void init(HINSTANCE hInst, HWND hPere, FindReplaceDlg *pFRDlg, bool isRTL = false);
virtual void destroy(); virtual void destroy();
virtual void display(bool toShow = true) const; virtual void display(bool toShow = true) const;
@ -452,6 +451,10 @@ public:
explicit Progress(HINSTANCE hInst); explicit Progress(HINSTANCE hInst);
~Progress(); ~Progress();
// Disable copy construction and operator=
Progress(const Progress&) = delete;
const Progress& operator=(const Progress&) = delete;
HWND open(HWND hCallerWnd = NULL, const TCHAR* header = NULL); HWND open(HWND hCallerWnd = NULL, const TCHAR* header = NULL);
void close(); void close();
@ -484,22 +487,18 @@ private:
static DWORD WINAPI threadFunc(LPVOID data); static DWORD WINAPI threadFunc(LPVOID data);
static LRESULT APIENTRY wndProc(HWND hwnd, UINT umsg, WPARAM wparam, LPARAM lparam); static LRESULT APIENTRY wndProc(HWND hwnd, UINT umsg, WPARAM wparam, LPARAM lparam);
// Disable copy construction and operator=
Progress(const Progress&);
const Progress& operator=(const Progress&);
int thread(); int thread();
int createProgressWindow(); int createProgressWindow();
RECT adjustSizeAndPos(int width, int height); RECT adjustSizeAndPos(int width, int height);
HINSTANCE _hInst; HINSTANCE _hInst = nullptr;
volatile HWND _hwnd; volatile HWND _hwnd = nullptr;
HWND _hCallerWnd; HWND _hCallerWnd = nullptr;
TCHAR _header[128]; TCHAR _header[128] = {'\0'};
HANDLE _hThread; HANDLE _hThread = nullptr;
HANDLE _hActiveState; HANDLE _hActiveState = nullptr;
HWND _hPText; HWND _hPText = nullptr;
HWND _hPBar; HWND _hPBar = nullptr;
HWND _hBtn; HWND _hBtn = nullptr;
}; };

View File

@ -33,7 +33,7 @@
class GoToLineDlg : public StaticDialog class GoToLineDlg : public StaticDialog
{ {
public : public :
GoToLineDlg() : StaticDialog() {}; GoToLineDlg() = default;
void init(HINSTANCE hInst, HWND hPere, ScintillaEditView **ppEditView) { void init(HINSTANCE hInst, HWND hPere, ScintillaEditView **ppEditView) {
Window::init(hInst, hPere); Window::init(hInst, hPere);

View File

@ -45,7 +45,8 @@ struct NPP_RangeToFormat {
class Printer class Printer
{ {
public : public :
Printer(){}; Printer() = default;
void init(HINSTANCE hInst, HWND hwnd, ScintillaEditView *pSEView, bool showDialog, int startPos, int endPos, bool isRTL = false); void init(HINSTANCE hInst, HWND hwnd, ScintillaEditView *pSEView, bool showDialog, int startPos, int endPos, bool isRTL = false);
size_t doPrint() { size_t doPrint() {
if (!::PrintDlg(&_pdlg)) if (!::PrintDlg(&_pdlg))

View File

@ -252,7 +252,7 @@ class SharedParametersDialog : public StaticDialog
{ {
friend class StylerDlg; friend class StylerDlg;
public: public:
SharedParametersDialog() {}; SharedParametersDialog() = default;
virtual void updateDlg() = 0; virtual void updateDlg() = 0;
protected : protected :
//Shared data //Shared data
@ -266,7 +266,7 @@ protected :
class FolderStyleDialog : public SharedParametersDialog class FolderStyleDialog : public SharedParametersDialog
{ {
public: public:
FolderStyleDialog(): SharedParametersDialog() {}; FolderStyleDialog() = default;
void updateDlg(); void updateDlg();
protected : protected :
INT_PTR CALLBACK run_dlgProc(UINT Message, WPARAM wParam, LPARAM lParam); INT_PTR CALLBACK run_dlgProc(UINT Message, WPARAM wParam, LPARAM lParam);
@ -279,7 +279,7 @@ private :
class KeyWordsStyleDialog : public SharedParametersDialog class KeyWordsStyleDialog : public SharedParametersDialog
{ {
public: public:
KeyWordsStyleDialog(): SharedParametersDialog() {}; KeyWordsStyleDialog() = default;
void updateDlg(); void updateDlg();
protected : protected :
INT_PTR CALLBACK run_dlgProc(UINT Message, WPARAM wParam, LPARAM lParam); INT_PTR CALLBACK run_dlgProc(UINT Message, WPARAM wParam, LPARAM lParam);
@ -289,7 +289,7 @@ protected :
class CommentStyleDialog : public SharedParametersDialog class CommentStyleDialog : public SharedParametersDialog
{ {
public : public :
CommentStyleDialog(): SharedParametersDialog() {}; CommentStyleDialog() = default;
void updateDlg(); void updateDlg();
protected : protected :
INT_PTR CALLBACK run_dlgProc(UINT Message, WPARAM wParam, LPARAM lParam); INT_PTR CALLBACK run_dlgProc(UINT Message, WPARAM wParam, LPARAM lParam);
@ -301,7 +301,7 @@ private :
class SymbolsStyleDialog : public SharedParametersDialog class SymbolsStyleDialog : public SharedParametersDialog
{ {
public : public :
SymbolsStyleDialog(): SharedParametersDialog() {}; SymbolsStyleDialog() = default;
void updateDlg(); void updateDlg();
protected : protected :
INT_PTR CALLBACK run_dlgProc(UINT Message, WPARAM wParam, LPARAM lParam); INT_PTR CALLBACK run_dlgProc(UINT Message, WPARAM wParam, LPARAM lParam);
@ -398,7 +398,7 @@ protected :
class StringDlg : public StaticDialog class StringDlg : public StaticDialog
{ {
public : public :
StringDlg() : StaticDialog() {}; StringDlg() = default;
void init(HINSTANCE hInst, HWND parent, const TCHAR *title, const TCHAR *staticName, const TCHAR *text2Set, int txtLen = 0, const TCHAR* restrictedChars = nullptr, bool bGotoCenter = false) { void init(HINSTANCE hInst, HWND parent, const TCHAR *title, const TCHAR *staticName, const TCHAR *text2Set, int txtLen = 0, const TCHAR* restrictedChars = nullptr, bool bGotoCenter = false) {
Window::init(hInst, parent); Window::init(hInst, parent);
_title = title; _title = title;

View File

@ -38,8 +38,7 @@ const bool activeNumeric = false;
class ColumnEditorDlg : public StaticDialog class ColumnEditorDlg : public StaticDialog
{ {
public : public :
ColumnEditorDlg() : StaticDialog() {}; ColumnEditorDlg() = default;
void init(HINSTANCE hInst, HWND hPere, ScintillaEditView **ppEditView); void init(HINSTANCE hInst, HWND hPere, ScintillaEditView **ppEditView);
virtual void create(int dialogID, bool isRTL = false, bool msgDestParent = true) { virtual void create(int dialogID, bool isRTL = false, bool msgDestParent = true) {
@ -55,18 +54,13 @@ public :
}; };
virtual void display(bool toShow = true) const; virtual void display(bool toShow = true) const;
void switchTo(bool toText); void switchTo(bool toText);
UCHAR getFormat(); UCHAR getFormat();
protected : protected :
virtual INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam); virtual INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam);
private : private :
ScintillaEditView **_ppEditView = nullptr; ScintillaEditView **_ppEditView = nullptr;
}; };

View File

@ -51,7 +51,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.")
class AboutDlg : public StaticDialog class AboutDlg : public StaticDialog
{ {
public : public :
AboutDlg() : StaticDialog() {}; AboutDlg() = default;
void doDialog(); void doDialog();
@ -72,7 +72,7 @@ private :
class DebugInfoDlg : public StaticDialog class DebugInfoDlg : public StaticDialog
{ {
public: public:
DebugInfoDlg() : StaticDialog() {}; DebugInfoDlg() = default;
void init(HINSTANCE hInst, HWND parent, bool isAdmin, const generic_string& loadedPlugins) { void init(HINSTANCE hInst, HWND parent, bool isAdmin, const generic_string& loadedPlugins) {
_isAdmin = isAdmin; _isAdmin = isAdmin;
@ -100,7 +100,7 @@ private:
class DoSaveOrNotBox : public StaticDialog class DoSaveOrNotBox : public StaticDialog
{ {
public: public:
DoSaveOrNotBox() : StaticDialog() {}; DoSaveOrNotBox() = default;
void init(HINSTANCE hInst, HWND parent, const TCHAR* fn, bool isMulti) { void init(HINSTANCE hInst, HWND parent, const TCHAR* fn, bool isMulti) {
Window::init(hInst, parent); Window::init(hInst, parent);
@ -112,8 +112,7 @@ public:
void doDialog(bool isRTL = false); void doDialog(bool isRTL = false);
virtual void destroy() { virtual void destroy() {};
};
int getClickedButtonId() const { int getClickedButtonId() const {
return clickedButtonId; return clickedButtonId;

View File

@ -43,8 +43,8 @@ struct columnInfo {
class ListView : public Window class ListView : public Window
{ {
public: public:
ListView() : Window() {}; ListView() = default;
virtual ~ListView() {}; virtual ~ListView() = default;
enum SortDirection { enum SortDirection {
sortEncrease = 0, sortEncrease = 0,

View File

@ -37,8 +37,8 @@ class ColourPopup;
class ColourPicker : public Window class ColourPicker : public Window
{ {
public : public :
ColourPicker() : Window(), _currentColour(RGB(0xFF, 0x00, 0x00)), _pColourPopup(NULL), _isEnabled(true) {}; ColourPicker() = default;
~ColourPicker(){}; ~ColourPicker() = default;
virtual void init(HINSTANCE hInst, HWND parent); virtual void init(HINSTANCE hInst, HWND parent);
virtual void destroy(); virtual void destroy();
void setColour(COLORREF c) { void setColour(COLORREF c) {
@ -50,10 +50,10 @@ public :
void setEnabled(bool enabled) {_isEnabled = enabled;}; void setEnabled(bool enabled) {_isEnabled = enabled;};
private : private :
COLORREF _currentColour; COLORREF _currentColour = RGB(0xFF, 0x00, 0x00);
WNDPROC _buttonDefaultProc; WNDPROC _buttonDefaultProc = nullptr;
ColourPopup *_pColourPopup; ColourPopup *_pColourPopup = nullptr;
bool _isEnabled; bool _isEnabled = true;
static LRESULT CALLBACK staticWinProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) { static LRESULT CALLBACK staticWinProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) {
return (((ColourPicker *)(::GetWindowLongPtr(hwnd, GWLP_USERDATA)))->runProc(Message, wParam, lParam)); return (((ColourPicker *)(::GetWindowLongPtr(hwnd, GWLP_USERDATA)))->runProc(Message, wParam, lParam));

View File

@ -68,7 +68,7 @@ private :
class WordStyleDlg : public StaticDialog class WordStyleDlg : public StaticDialog
{ {
public : public :
WordStyleDlg() {}; WordStyleDlg() = default;
void init(HINSTANCE hInst, HWND parent) { void init(HINSTANCE hInst, HWND parent) {
Window::init(hInst, parent); Window::init(hInst, parent);
@ -125,19 +125,18 @@ private :
int _currentLexerIndex = 0; int _currentLexerIndex = 0;
int _currentThemeIndex = 0; int _currentThemeIndex = 0;
HWND _hCheckBold; HWND _hCheckBold = nullptr;
HWND _hCheckItalic; HWND _hCheckItalic = nullptr;
HWND _hCheckUnderline; HWND _hCheckUnderline = nullptr;
HWND _hFontNameCombo; HWND _hFontNameCombo = nullptr;
HWND _hFontSizeCombo; HWND _hFontSizeCombo = nullptr;
HWND _hSwitch2ThemeCombo; HWND _hSwitch2ThemeCombo = nullptr;
HWND _hFgColourStaticText; HWND _hFgColourStaticText = nullptr;
HWND _hBgColourStaticText; HWND _hBgColourStaticText = nullptr;
HWND _hFontNameStaticText; HWND _hFontNameStaticText = nullptr;
HWND _hFontSizeStaticText; HWND _hFontSizeStaticText = nullptr;
HWND _hStyleInfoStaticText; HWND _hStyleInfoStaticText = nullptr;
//TCHAR _originalWarning[256];
LexerStylerArray _lsArray; LexerStylerArray _lsArray;
StyleArray _globalStyles; StyleArray _globalStyles;

View File

@ -45,8 +45,8 @@
class DockingSplitter : public Window class DockingSplitter : public Window
{ {
public : public :
DockingSplitter() : _isLeftButtonDown(FALSE), _hMessage(NULL) {}; DockingSplitter() = default;
~DockingSplitter(){}; ~DockingSplitter() = default;
virtual void destroy() {}; virtual void destroy() {};
@ -59,11 +59,11 @@ protected:
LRESULT runProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); LRESULT runProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
private: private:
HWND _hMessage; HWND _hMessage = nullptr;
BOOL _isLeftButtonDown; BOOL _isLeftButtonDown = FALSE;
POINT _ptOldPos; POINT _ptOldPos = {0, 0};
UINT _flags; UINT _flags = 0;
static BOOL _isVertReg; static BOOL _isVertReg;
static BOOL _isHoriReg; static BOOL _isHoriReg;

View File

@ -38,17 +38,15 @@ struct MapPosition;
class DocumentPeeker : public StaticDialog { class DocumentPeeker : public StaticDialog {
public: public:
DocumentPeeker(): StaticDialog() {}; DocumentPeeker() = default;
void init(HINSTANCE hInst, HWND hPere) { void init(HINSTANCE hInst, HWND hPere) {
Window::init(hInst, hPere); Window::init(hInst, hPere);
}; };
void doDialog(POINT p, Buffer *buf, ScintillaEditView & scintSource); void doDialog(POINT p, Buffer *buf, ScintillaEditView & scintSource);
void syncDisplay(Buffer *buf, ScintillaEditView & scintSource); void syncDisplay(Buffer *buf, ScintillaEditView & scintSource);
void setParent(HWND parent2set){ void setParent(HWND parent2set){
_hParent = parent2set; _hParent = parent2set;
}; };

View File

@ -58,12 +58,12 @@ friend class FileBrowser;
friend class FolderInfo; friend class FolderInfo;
public: public:
FileInfo() = delete; // constructor by default is forbidden
FileInfo(const generic_string & name, FolderInfo *parent) : _name(name), _parent(parent) {}; FileInfo(const generic_string & name, FolderInfo *parent) : _name(name), _parent(parent) {};
generic_string getName() const { return _name; }; generic_string getName() const { return _name; };
void setName(generic_string name) { _name = name; }; void setName(generic_string name) { _name = name; };
private: private:
FileInfo(){}; // constructor by default is forbidden
FolderInfo *_parent = nullptr; FolderInfo *_parent = nullptr;
generic_string _name; generic_string _name;
}; };
@ -75,6 +75,7 @@ friend class FileBrowser;
friend class FolderUpdater; friend class FolderUpdater;
public: public:
FolderInfo() = delete; // constructor by default is forbidden
FolderInfo(const generic_string & name, FolderInfo *parent) : _name(name), _parent(parent) {}; FolderInfo(const generic_string & name, FolderInfo *parent) : _name(name), _parent(parent) {};
void setRootPath(const generic_string& rootPath) { _rootPath = rootPath; }; void setRootPath(const generic_string& rootPath) { _rootPath = rootPath; };
generic_string getRootPath() const { return _rootPath; }; generic_string getRootPath() const { return _rootPath; };
@ -88,7 +89,6 @@ public:
bool renameInStructure(std::vector<generic_string> linarPathArrayFrom, std::vector<generic_string> linarPathArrayTo); bool renameInStructure(std::vector<generic_string> linarPathArrayFrom, std::vector<generic_string> linarPathArrayTo);
private: private:
FolderInfo(){}; // constructor by default is forbidden
std::vector<FolderInfo> _subFolders; std::vector<FolderInfo> _subFolders;
std::vector<FileInfo> _files; std::vector<FileInfo> _files;
FolderInfo *_parent = nullptr; FolderInfo *_parent = nullptr;
@ -104,8 +104,7 @@ class FolderUpdater {
friend class FileBrowser; friend class FileBrowser;
public: public:
FolderUpdater(const FolderInfo& fi, FileBrowser *pFileBrowser) : _rootFolder(fi), _pFileBrowser(pFileBrowser) {}; FolderUpdater(const FolderInfo& fi, FileBrowser *pFileBrowser) : _rootFolder(fi), _pFileBrowser(pFileBrowser) {};
~FolderUpdater() {}; ~FolderUpdater() = default;
//bool updateTree(DWORD action, const std::vector<generic_string> & file2Change); // postMessage to FileBrowser to upgrade GUI
void startWatcher(); void startWatcher();
void stopWatcher(); void stopWatcher();

View File

@ -40,7 +40,7 @@
class FindCharsInRangeDlg : public StaticDialog class FindCharsInRangeDlg : public StaticDialog
{ {
public : public :
FindCharsInRangeDlg() : StaticDialog() {}; FindCharsInRangeDlg() = default;
void init(HINSTANCE hInst, HWND hPere, ScintillaEditView **ppEditView) { void init(HINSTANCE hInst, HWND hPere, ScintillaEditView **ppEditView) {
Window::init(hInst, hPere); Window::init(hInst, hPere);

View File

@ -49,7 +49,8 @@ public:
virtual void parse(std::vector<foundInfo> & foundInfos, size_t begin, size_t end, ScintillaEditView **ppEditView, generic_string classStructName = TEXT("")) = 0; virtual void parse(std::vector<foundInfo> & foundInfos, size_t begin, size_t end, ScintillaEditView **ppEditView, generic_string classStructName = TEXT("")) = 0;
void funcParse(std::vector<foundInfo> & foundInfos, size_t begin, size_t end, ScintillaEditView **ppEditView, generic_string classStructName = TEXT(""), const std::vector< std::pair<int, int> > * commentZones = NULL); void funcParse(std::vector<foundInfo> & foundInfos, size_t begin, size_t end, ScintillaEditView **ppEditView, generic_string classStructName = TEXT(""), const std::vector< std::pair<int, int> > * commentZones = NULL);
bool isInZones(int pos2Test, const std::vector< std::pair<int, int> > & zones); bool isInZones(int pos2Test, const std::vector< std::pair<int, int> > & zones);
virtual ~FunctionParser() {}; virtual ~FunctionParser() = default;
protected: protected:
generic_string _id; generic_string _id;
generic_string _displayName; generic_string _displayName;
@ -66,6 +67,7 @@ protected:
class FunctionZoneParser : public FunctionParser class FunctionZoneParser : public FunctionParser
{ {
public: public:
FunctionZoneParser() = delete;
FunctionZoneParser(const TCHAR *id, const TCHAR *displayName, const TCHAR *commentExpr, const generic_string& rangeExpr, const generic_string& openSymbole, const generic_string& closeSymbole, FunctionZoneParser(const TCHAR *id, const TCHAR *displayName, const TCHAR *commentExpr, const generic_string& rangeExpr, const generic_string& openSymbole, const generic_string& closeSymbole,
const std::vector<generic_string>& classNameExprArray, const generic_string& functionExpr, const std::vector<generic_string>& functionNameExprArray): const std::vector<generic_string>& classNameExprArray, const generic_string& functionExpr, const std::vector<generic_string>& functionNameExprArray):
FunctionParser(id, displayName, commentExpr, functionExpr, functionNameExprArray, classNameExprArray), _rangeExpr(rangeExpr), _openSymbole(openSymbole), _closeSymbole(closeSymbole) {}; FunctionParser(id, displayName, commentExpr, functionExpr, functionNameExprArray, classNameExprArray), _rangeExpr(rangeExpr), _openSymbole(openSymbole), _closeSymbole(closeSymbole) {};

View File

@ -35,8 +35,9 @@
class BabyGridWrapper : public Window class BabyGridWrapper : public Window
{ {
public : public :
BabyGridWrapper() : Window(){}; BabyGridWrapper() = default;
~BabyGridWrapper(){}; ~BabyGridWrapper() = default;
virtual void init(HINSTANCE hInst, HWND parent, int16_t id); virtual void init(HINSTANCE hInst, HWND parent, int16_t id);
virtual void destroy() { virtual void destroy() {
::DestroyWindow(_hSelf); ::DestroyWindow(_hSelf);

View File

@ -41,7 +41,7 @@ public:
_shortcutFilter = TEXT(""); _shortcutFilter = TEXT("");
_dialogInitDone = false; _dialogInitDone = false;
}; };
~ShortcutMapper() {}; ~ShortcutMapper() = default;
void init(HINSTANCE hInst, HWND parent, GridState initState = STATE_MENU) { void init(HINSTANCE hInst, HWND parent, GridState initState = STATE_MENU) {
Window::init(hInst, parent); Window::init(hInst, parent);

View File

@ -38,7 +38,7 @@ const int nbMax = 45;
class IconList class IconList
{ {
public : public :
IconList() {}; IconList() = default;
void create(HINSTANCE hInst, int iconSize); void create(HINSTANCE hInst, int iconSize);
void create(int iconSize, HINSTANCE hInst, int *iconIDArray, int iconIDArraySize); void create(int iconSize, HINSTANCE hInst, int *iconIDArray, int iconIDArraySize);
@ -76,7 +76,7 @@ typedef std::vector<IconList> IconListVector;
class IconLists class IconLists
{ {
public : public :
IconLists() {}; IconLists() = default;
HIMAGELIST getImageListHandle(int index) const { HIMAGELIST getImageListHandle(int index) const {
return _iconListVector[index].getHandle(); return _iconListVector[index].getHandle();
}; };
@ -92,7 +92,7 @@ const int HLIST_DISABLE = 2;
class ToolBarIcons : public IconLists class ToolBarIcons : public IconLists
{ {
public : public :
ToolBarIcons() : _nbCmd(0) {}; ToolBarIcons() = default;
void init(ToolBarButtonUnit *buttonUnitArray, int arraySize); void init(ToolBarButtonUnit *buttonUnitArray, int arraySize);
void create(HINSTANCE hInst, int iconSize); void create(HINSTANCE hInst, int iconSize);
@ -133,6 +133,6 @@ public :
private : private :
ToolBarIconIDs _tbiis; ToolBarIconIDs _tbiis;
unsigned int _nbCmd; unsigned int _nbCmd = 0;
}; };

View File

@ -44,7 +44,7 @@ struct Version
unsigned long _patch = 0; unsigned long _patch = 0;
unsigned long _build = 0; unsigned long _build = 0;
Version() {}; Version() = default;
Version(const generic_string& versionStr); Version(const generic_string& versionStr);
void setVersionFrom(const generic_string& filePath); void setVersionFrom(const generic_string& filePath);
@ -89,7 +89,7 @@ struct PluginUpdateInfo
bool _isVisible = true; // if false then it should not be displayed bool _isVisible = true; // if false then it should not be displayed
generic_string describe(); generic_string describe();
PluginUpdateInfo() {}; PluginUpdateInfo() = default;
PluginUpdateInfo(const generic_string& fullFilePath, const generic_string& fileName); PluginUpdateInfo(const generic_string& fullFilePath, const generic_string& fileName);
}; };
@ -126,7 +126,7 @@ struct SortDisplayNameDecrease final
class PluginViewList class PluginViewList
{ {
public: public:
PluginViewList() {}; PluginViewList() = default;
~PluginViewList() { ~PluginViewList() {
_ui.destroy(); _ui.destroy();
for (auto i : _list) for (auto i : _list)
@ -172,7 +172,7 @@ class PluginsAdminDlg final : public StaticDialog
{ {
public : public :
PluginsAdminDlg(); PluginsAdminDlg();
~PluginsAdminDlg() {}; ~PluginsAdminDlg() = default;
void init(HINSTANCE hInst, HWND parent) { void init(HINSTANCE hInst, HWND parent) {
Window::init(hInst, parent); Window::init(hInst, parent);

View File

@ -38,7 +38,7 @@
class SettingsDlg : public StaticDialog class SettingsDlg : public StaticDialog
{ {
public : public :
SettingsDlg() {}; SettingsDlg() = default;
private : private :
INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam); INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam);
@ -47,7 +47,7 @@ private :
class BarsDlg : public StaticDialog class BarsDlg : public StaticDialog
{ {
public : public :
BarsDlg() {}; BarsDlg() = default;
private : private :
INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam); INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam);
}; };
@ -55,7 +55,7 @@ private :
class MarginsDlg : public StaticDialog class MarginsDlg : public StaticDialog
{ {
public : public :
MarginsDlg() {}; MarginsDlg() = default;
virtual void destroy() { virtual void destroy() {
_verticalEdgeLineNbColVal.destroy(); _verticalEdgeLineNbColVal.destroy();
}; };
@ -76,7 +76,7 @@ struct LangID_Name
class DefaultNewDocDlg : public StaticDialog class DefaultNewDocDlg : public StaticDialog
{ {
public : public :
DefaultNewDocDlg() {}; DefaultNewDocDlg() = default;
private : private :
std::vector<LangID_Name> _langList; std::vector<LangID_Name> _langList;
@ -91,7 +91,7 @@ private :
class DefaultDirectoryDlg : public StaticDialog class DefaultDirectoryDlg : public StaticDialog
{ {
public : public :
DefaultDirectoryDlg() {}; DefaultDirectoryDlg() = default;
private : private :
INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam); INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam);
@ -100,7 +100,7 @@ private :
class RecentFilesHistoryDlg : public StaticDialog class RecentFilesHistoryDlg : public StaticDialog
{ {
public : public :
RecentFilesHistoryDlg() {}; RecentFilesHistoryDlg() = default;
virtual void destroy() { virtual void destroy() {
_nbHistoryVal.destroy(); _nbHistoryVal.destroy();
_customLenVal.destroy(); _customLenVal.destroy();
@ -116,7 +116,7 @@ private :
class LangMenuDlg : public StaticDialog class LangMenuDlg : public StaticDialog
{ {
public : public :
LangMenuDlg() {}; LangMenuDlg() = default;
virtual void destroy() { virtual void destroy() {
_tabSizeVal.destroy(); _tabSizeVal.destroy();
}; };
@ -131,7 +131,7 @@ private :
class Highlighting : public StaticDialog class Highlighting : public StaticDialog
{ {
public : public :
Highlighting() {}; Highlighting() = default;
private : private :
@ -148,7 +148,8 @@ struct strCouple {
class PrintSettingsDlg : public StaticDialog class PrintSettingsDlg : public StaticDialog
{ {
public : public :
PrintSettingsDlg(){}; PrintSettingsDlg() = default;
private : private :
INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam); INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam);
std::vector<strCouple> varList; std::vector<strCouple> varList;
@ -158,7 +159,8 @@ private :
class BackupDlg : public StaticDialog class BackupDlg : public StaticDialog
{ {
public : public :
BackupDlg() {}; BackupDlg() = default;
private : private :
void updateBackupGUI(); void updateBackupGUI();
INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam); INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam);
@ -168,7 +170,7 @@ private :
class AutoCompletionDlg : public StaticDialog class AutoCompletionDlg : public StaticDialog
{ {
public : public :
AutoCompletionDlg() {}; AutoCompletionDlg() = default;
private : private :
URLCtrl _nbCharVal; URLCtrl _nbCharVal;
INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam); INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam);
@ -177,7 +179,7 @@ private :
class MultiInstDlg : public StaticDialog class MultiInstDlg : public StaticDialog
{ {
public : public :
MultiInstDlg() {}; MultiInstDlg() = default;
private : private :
INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam); INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam);
@ -186,7 +188,7 @@ private :
class DelimiterSettingsDlg : public StaticDialog class DelimiterSettingsDlg : public StaticDialog
{ {
public : public :
DelimiterSettingsDlg() {}; DelimiterSettingsDlg() = default;
~DelimiterSettingsDlg() { ~DelimiterSettingsDlg() {
if (_tip) if (_tip)
::DestroyWindow(_tip); ::DestroyWindow(_tip);
@ -206,7 +208,7 @@ private :
class SettingsOnCloudDlg : public StaticDialog class SettingsOnCloudDlg : public StaticDialog
{ {
public : public :
SettingsOnCloudDlg() {}; SettingsOnCloudDlg() = default;
private : private :
INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam); INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam);
@ -215,7 +217,7 @@ private :
class SearchEngineChoiceDlg : public StaticDialog class SearchEngineChoiceDlg : public StaticDialog
{ {
public : public :
SearchEngineChoiceDlg() {}; SearchEngineChoiceDlg() = default;
private : private :
INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam); INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam);
@ -226,7 +228,7 @@ class PreferenceDlg : public StaticDialog
friend class NativeLangSpeaker; friend class NativeLangSpeaker;
public : public :
PreferenceDlg(){}; PreferenceDlg() = default;
void init(HINSTANCE hInst, HWND parent) { void init(HINSTANCE hInst, HWND parent) {
Window::init(hInst, parent); Window::init(hInst, parent);

View File

@ -145,7 +145,7 @@ protected:
class FileRelocalizerDlg : public StaticDialog class FileRelocalizerDlg : public StaticDialog
{ {
public : public :
FileRelocalizerDlg() : StaticDialog() {}; FileRelocalizerDlg() = default;
void init(HINSTANCE hInst, HWND parent) { void init(HINSTANCE hInst, HWND parent) {
Window::init(hInst, parent); Window::init(hInst, parent);
}; };

View File

@ -44,9 +44,9 @@ struct TreeStateNode {
class TreeView : public Window { class TreeView : public Window {
public: public:
TreeView() : Window(), _isItemDragged(false) {}; TreeView() = default;
virtual ~TreeView() = default;
virtual ~TreeView() {};
virtual void init(HINSTANCE hInst, HWND parent, int treeViewID); virtual void init(HINSTANCE hInst, HWND parent, int treeViewID);
virtual void destroy(); virtual void destroy();
HTREEITEM addItem(const TCHAR *itemName, HTREEITEM hParentItem, int iImage, const TCHAR *filePath = NULL); HTREEITEM addItem(const TCHAR *itemName, HTREEITEM hParentItem, int iImage, const TCHAR *filePath = NULL);
@ -131,7 +131,7 @@ protected:
// Drag and Drop operations // Drag and Drop operations
HTREEITEM _draggedItem; HTREEITEM _draggedItem;
HIMAGELIST _draggedImageList; HIMAGELIST _draggedImageList;
bool _isItemDragged; bool _isItemDragged = false;
std::vector<int> _canNotDragOutList; std::vector<int> _canNotDragOutList;
std::vector<int> _canNotDropInList; std::vector<int> _canNotDropInList;
bool canBeDropped(HTREEITEM draggedItem, HTREEITEM targetItem); bool canBeDropped(HTREEITEM draggedItem, HTREEITEM targetItem);

View File

@ -39,7 +39,7 @@ void expandNppEnvironmentStrs(const TCHAR *strSrc, TCHAR *stringDest, size_t str
class Command { class Command {
public : public :
Command(){}; Command() = default;
explicit Command(TCHAR *cmd) : _cmdLine(cmd){}; explicit Command(TCHAR *cmd) : _cmdLine(cmd){};
explicit Command(const generic_string& cmd) : _cmdLine(cmd){}; explicit Command(const generic_string& cmd) : _cmdLine(cmd){};
HINSTANCE run(HWND hWnd); HINSTANCE run(HWND hWnd);
@ -54,7 +54,7 @@ private :
class RunDlg : public Command, public StaticDialog class RunDlg : public Command, public StaticDialog
{ {
public : public :
RunDlg() : StaticDialog() {}; RunDlg() = default;
void doDialog(bool isRTL = false); void doDialog(bool isRTL = false);
virtual void destroy() {}; virtual void destroy() {};

View File

@ -68,8 +68,8 @@ struct TBHDR
class TabBar : public Window class TabBar : public Window
{ {
public: public:
TabBar() : Window() {}; TabBar() = default;
virtual ~TabBar() {}; virtual ~TabBar() = default;
virtual void destroy(); virtual void destroy();
virtual void init(HINSTANCE hInst, HWND hwnd, bool isVertical = false, bool isMultiLine = false); virtual void init(HINSTANCE hInst, HWND hwnd, bool isVertical = false, bool isMultiLine = false);
virtual void reSizeTo(RECT & rc2Ajust); virtual void reSizeTo(RECT & rc2Ajust);
@ -143,7 +143,7 @@ struct CloseButtonZone
class TabBarPlus : public TabBar class TabBarPlus : public TabBar
{ {
public : public :
TabBarPlus() : TabBar() {}; TabBarPlus() = default;
enum tabColourIndex { enum tabColourIndex {
activeText, activeFocusedTop, activeUnfocusedTop, inactiveText, inactiveBg activeText, activeFocusedTop, activeUnfocusedTop, inactiveText, inactiveBg
}; };

View File

@ -46,7 +46,7 @@ public:
_rc.bottom = 0; _rc.bottom = 0;
}; };
virtual ~TaskList() {}; virtual ~TaskList() = default;
void init(HINSTANCE hInst, HWND hwnd, HIMAGELIST hImaLst, int nbItem, int index2set); void init(HINSTANCE hInst, HWND hwnd, HIMAGELIST hImaLst, int nbItem, int index2set);
virtual void destroy(); virtual void destroy();
void setFont(const TCHAR *fontName, int fontSize); void setFont(const TCHAR *fontName, int fontSize);

View File

@ -67,8 +67,8 @@ class TiXmlNode;
class ToolBar : public Window class ToolBar : public Window
{ {
public : public :
ToolBar():Window() {}; ToolBar() = default;
virtual ~ToolBar(){}; virtual ~ToolBar() = default;
void initTheme(TiXmlDocument *toolIconsDocRoot); void initTheme(TiXmlDocument *toolIconsDocRoot);
virtual bool init(HINSTANCE hInst, HWND hPere, toolBarStatusType type, virtual bool init(HINSTANCE hInst, HWND hPere, toolBarStatusType type,

View File

@ -35,7 +35,7 @@
class ToolTip : public Window class ToolTip : public Window
{ {
public : public :
ToolTip() {}; ToolTip() = default;
void destroy(){ void destroy(){
::DestroyWindow(_hSelf); ::DestroyWindow(_hSelf);

View File

@ -42,15 +42,17 @@ typedef Buffer * BufferID; //each buffer has unique ID by which it can be retrie
struct SwitcherFileInfo { struct SwitcherFileInfo {
BufferID _bufID; BufferID _bufID;
int _iView; int _iView;
SwitcherFileInfo() = delete;
SwitcherFileInfo(BufferID buf, int view) : _bufID(buf), _iView(view){}; SwitcherFileInfo(BufferID buf, int view) : _bufID(buf), _iView(view){};
}; };
class VerticalFileSwitcherListView : public Window class VerticalFileSwitcherListView : public Window
{ {
public: public:
VerticalFileSwitcherListView() : Window() {}; VerticalFileSwitcherListView() = default;
virtual ~VerticalFileSwitcherListView() = default;
virtual ~VerticalFileSwitcherListView() {};
virtual void init(HINSTANCE hInst, HWND parent, HIMAGELIST hImaLst); virtual void init(HINSTANCE hInst, HWND parent, HIMAGELIST hImaLst);
virtual void destroy(); virtual void destroy();
void initList(); void initList();

View File

@ -39,9 +39,8 @@
class RunMacroDlg : public StaticDialog class RunMacroDlg : public StaticDialog
{ {
public : public :
RunMacroDlg() : StaticDialog() {}; RunMacroDlg() = default;
~RunMacroDlg() { ~RunMacroDlg() = default;
};
void init(HINSTANCE hInst, HWND hPere/*, ScintillaEditView **ppEditView*/) { void init(HINSTANCE hInst, HWND hPere/*, ScintillaEditView **ppEditView*/) {
Window::init(hInst, hPere); Window::init(hInst, hPere);

View File

@ -352,7 +352,7 @@ private :
class Accelerator { //Handles accelerator keys for Notepad++ menu, including custom commands class Accelerator { //Handles accelerator keys for Notepad++ menu, including custom commands
friend class ShortcutMapper; friend class ShortcutMapper;
public: public:
Accelerator() {}; Accelerator() = default;
~Accelerator() { ~Accelerator() {
if (_hAccTable) if (_hAccTable)
::DestroyAcceleratorTable(_hAccTable); ::DestroyAcceleratorTable(_hAccTable);
@ -388,7 +388,7 @@ private:
class ScintillaAccelerator { //Handles accelerator keys for scintilla class ScintillaAccelerator { //Handles accelerator keys for scintilla
public: public:
ScintillaAccelerator() {}; ScintillaAccelerator() = default;
void init(std::vector<HWND> * vScintillas, HMENU hMenu, HWND menuParent); void init(std::vector<HWND> * vScintillas, HMENU hMenu, HWND menuParent);
void updateKeys(); void updateKeys();
size_t nbScintillas() { return _vScintillas.size(); }; size_t nbScintillas() { return _vScintillas.size(); };

View File

@ -86,8 +86,8 @@ public:
private: private:
// X and Y DPI values are provided, though to date all // X and Y DPI values are provided, though to date all
// Windows OS releases have equal X and Y scale values // Windows OS releases have equal X and Y scale values
int _dpiX; int _dpiX = 0;
int _dpiY; int _dpiY = 0;
void init() { void init() {

View File

@ -44,8 +44,6 @@ class LastRecentFileList
public: public:
LastRecentFileList() { LastRecentFileList() {
_userMax = (NppParameters::getInstance()).getNbMaxRecentFile(); _userMax = (NppParameters::getInstance()).getNbMaxRecentFile();
for (int i = 0; i < NB_MAX_LRF_FILE; i++)
_idFreeArray[i] = false;
}; };
void initMenu(HMENU hMenu, int idBase, int posBase, Accelerator *accelerator, bool doSubMenu = false); void initMenu(HMENU hMenu, int idBase, int posBase, Accelerator *accelerator, bool doSubMenu = false);
@ -107,12 +105,11 @@ private:
HMENU _hMenu = nullptr; HMENU _hMenu = nullptr;
int _posBase = -1; int _posBase = -1;
int _idBase = -1; int _idBase = -1;
bool _idFreeArray[NB_MAX_LRF_FILE]; bool _idFreeArray[NB_MAX_LRF_FILE] = {false};
bool _hasSeparators = false; bool _hasSeparators = false;
bool _locked = false; bool _locked = false;
int find(const TCHAR *fn); int find(const TCHAR *fn);
int popFirstAvailableID(); int popFirstAvailableID();
void setAvailable(int id); void setAvailable(int id);
}; };

View File

@ -36,7 +36,7 @@ const int DEFAULT_NB_NUMBER = 2;
class ValueDlg : public StaticDialog class ValueDlg : public StaticDialog
{ {
public : public :
ValueDlg() : StaticDialog() {}; ValueDlg() = default;
void init(HINSTANCE hInst, HWND parent, int valueToSet, const TCHAR *text); void init(HINSTANCE hInst, HWND parent, int valueToSet, const TCHAR *text);
int doDialog(POINT p, bool isRTL = false); int doDialog(POINT p, bool isRTL = false);
void setNBNumber(int nbNumber) { void setNBNumber(int nbNumber) {
@ -53,7 +53,7 @@ private :
int _nbNumber = DEFAULT_NB_NUMBER; int _nbNumber = DEFAULT_NB_NUMBER;
int _defaultValue = 0; int _defaultValue = 0;
generic_string _name; generic_string _name;
POINT _p; POINT _p = {0, 0};
}; };
// 0 : sans fullscreen // 0 : sans fullscreen
@ -66,7 +66,7 @@ const int buttonStatus_postit = 2;
class ButtonDlg : public StaticDialog class ButtonDlg : public StaticDialog
{ {
public : public :
ButtonDlg() : StaticDialog(), _buttonStatus(buttonStatus_nada) {}; ButtonDlg() = default;
void init(HINSTANCE hInst, HWND parent){ void init(HINSTANCE hInst, HWND parent){
Window::init(hInst, parent); Window::init(hInst, parent);
}; };
@ -91,7 +91,7 @@ public :
protected : protected :
INT_PTR CALLBACK run_dlgProc(UINT Message, WPARAM wParam, LPARAM); INT_PTR CALLBACK run_dlgProc(UINT Message, WPARAM wParam, LPARAM);
int _buttonStatus; int _buttonStatus = buttonStatus_nada;
}; };
#endif //TABSIZE_DLG_H #endif //TABSIZE_DLG_H