Skip to content

Commit

Permalink
- replace defines by constexpr auto
Browse files Browse the repository at this point in the history
- removed unused define PLUGINTEMPLATE_INI
  • Loading branch information
chcg committed Dec 10, 2023
1 parent d26cac6 commit 2f4829c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion PythonScript/src/MenuManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ struct ShortcutKey;
// The DYNAMIC_ADD_ID is used for the CommandIDs for dynamic menu entries added between restarts
// It is added to the ID allocated to the first /real/ menu item (ie. probably "New Script")

#define DYNAMIC_ADD_ID 1700
constexpr auto DYNAMIC_ADD_ID = 1700;


struct FuncItem;
Expand Down
9 changes: 4 additions & 5 deletions PythonScript/src/PythonScript.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#ifndef _PYTHONSCRIPT_H
#define _PYTHONSCRIPT_H

#define PLUGIN_NAME _T("Python Script")
#define PLUGIN_MODULE_NAME _T("PythonScript.dll")
#define PLUGINTEMPLATE_INI _T("\\PythonScript.ini")
constexpr auto PLUGIN_NAME = _T("Python Script");
constexpr auto PLUGIN_MODULE_NAME = _T("PythonScript.dll");

#define MAX_MENU_SCRIPTS 50
#define FIXED_MENU_ITEMS 9
constexpr auto MAX_MENU_SCRIPTS = 50;
constexpr auto FIXED_MENU_ITEMS = 9;


// The first scintilla notification - this is 2000
Expand Down

0 comments on commit 2f4829c

Please sign in to comment.