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
|
||||
|
||||
|
||||
typedef struct {
|
||||
struct tTbData {
|
||||
HWND hClient = nullptr; // client Window Handle
|
||||
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
|
||||
|
@ -60,13 +60,13 @@ typedef struct {
|
|||
RECT rcFloat = {0}; // floating position
|
||||
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
|
||||
} tTbData;
|
||||
};
|
||||
|
||||
|
||||
typedef struct {
|
||||
struct tDockMgr {
|
||||
HWND hWnd = nullptr; // the docking manager wnd
|
||||
RECT rcRegion[DOCKCONT_MAX] = {{0}}; // position of docked dialogs
|
||||
} tDockMgr;
|
||||
};
|
||||
|
||||
|
||||
#define HIT_TEST_THICKNESS 20
|
||||
|
|
|
@ -980,7 +980,6 @@ void WindowsDlg::doSortToTabs()
|
|||
|
||||
void WindowsDlg::putItemsToClipboard(bool isFullPath)
|
||||
{
|
||||
constexpr int nameColumn = 0;
|
||||
constexpr int pathColumn = 1;
|
||||
|
||||
TCHAR str[MAX_PATH] = {};
|
||||
|
|
Loading…
Reference in New Issue