mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 22:04:55 +02:00
Fix obsolete way of struct declaration
with which it failed to compile with VS2022: https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/c5208?view=msvc-160 Close #10758
This commit is contained in:
parent
eeaa4576f3
commit
3112466930
@ -46,7 +46,7 @@
|
|||||||
#define DWS_DF_FLOATING 0x80000000 // default state is floating
|
#define DWS_DF_FLOATING 0x80000000 // default state is floating
|
||||||
|
|
||||||
|
|
||||||
typedef struct {
|
struct tTbData {
|
||||||
HWND hClient = nullptr; // client Window Handle
|
HWND hClient = nullptr; // client Window Handle
|
||||||
const TCHAR* pszName = nullptr; // name of plugin (shown in window)
|
const TCHAR* pszName = nullptr; // name of plugin (shown in window)
|
||||||
int dlgID = 0; // a funcItem provides the function pointer to start a dialog. Please parse here these ID
|
int dlgID = 0; // a funcItem provides the function pointer to start a dialog. Please parse here these ID
|
||||||
@ -60,13 +60,13 @@ typedef struct {
|
|||||||
RECT rcFloat = {0}; // floating position
|
RECT rcFloat = {0}; // floating position
|
||||||
int iPrevCont = 0; // stores the privious container (toggling between float and dock)
|
int iPrevCont = 0; // stores the privious container (toggling between float and dock)
|
||||||
const TCHAR* pszModuleName = nullptr; // it's the plugin file name. It's used to identify the plugin
|
const TCHAR* pszModuleName = nullptr; // it's the plugin file name. It's used to identify the plugin
|
||||||
} tTbData;
|
};
|
||||||
|
|
||||||
|
|
||||||
typedef struct {
|
struct tDockMgr {
|
||||||
HWND hWnd = nullptr; // the docking manager wnd
|
HWND hWnd = nullptr; // the docking manager wnd
|
||||||
RECT rcRegion[DOCKCONT_MAX] = {{0}}; // position of docked dialogs
|
RECT rcRegion[DOCKCONT_MAX] = {{0}}; // position of docked dialogs
|
||||||
} tDockMgr;
|
};
|
||||||
|
|
||||||
|
|
||||||
#define HIT_TEST_THICKNESS 20
|
#define HIT_TEST_THICKNESS 20
|
||||||
|
@ -980,7 +980,6 @@ void WindowsDlg::doSortToTabs()
|
|||||||
|
|
||||||
void WindowsDlg::putItemsToClipboard(bool isFullPath)
|
void WindowsDlg::putItemsToClipboard(bool isFullPath)
|
||||||
{
|
{
|
||||||
constexpr int nameColumn = 0;
|
|
||||||
constexpr int pathColumn = 1;
|
constexpr int pathColumn = 1;
|
||||||
|
|
||||||
TCHAR str[MAX_PATH] = {};
|
TCHAR str[MAX_PATH] = {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user