diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-10-05 18:36:38 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-10-06 09:13:47 +0200 |
commit | 070b3a848d6824ea154ae2d68fc7571feed60a5f (patch) | |
tree | f65c1a45b601b2c585aa8c291b4eca2e56d915ab /include/vcl/sysdata.hxx | |
parent | def00961243da0662f394bdf58b1157cfd45dfab (diff) |
SystemEnvData::nSize is no longer read and can be removed
...since 5926b22b5dc33490d23d594b129eb8a70b94ffb0 "The SystemEnvData passed into
the canvas factories appears to be unused". (And the user-provided SvpSalObject
ctor can be removed, at which point the use in SvpSalInstance::CreateObject
should be written without "()" to avoid loplugin:subtlezeroinit.
Change-Id: I4392fa2d697b29c814d7b577a7b1f8c984c05e70
Reviewed-on: https://gerrit.libreoffice.org/80298
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/vcl/sysdata.hxx')
-rw-r--r-- | include/vcl/sysdata.hxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/vcl/sysdata.hxx b/include/vcl/sysdata.hxx index 722c223f5e19..e7a8f5d2df55 100644 --- a/include/vcl/sysdata.hxx +++ b/include/vcl/sysdata.hxx @@ -51,7 +51,6 @@ typedef struct CGContext *CGContextRef; struct SystemEnvData { - sal_uInt32 nSize; // size in bytes of this structure #if defined(_WIN32) HWND hWnd; // the window hwnd #elif defined( MACOSX ) @@ -76,16 +75,15 @@ struct SystemEnvData #endif SystemEnvData() - : nSize(0) #if defined(_WIN32) - , hWnd(nullptr) + : hWnd(nullptr) #elif defined( MACOSX ) - , mpNSView(nullptr) + : mpNSView(nullptr) , mbOpenGL(false) #elif defined( ANDROID ) #elif defined( IOS ) #elif defined( UNX ) - , pDisplay(nullptr) + : pDisplay(nullptr) , aWindow(0) , pSalFrame(nullptr) , pWidget(nullptr) |