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 /vcl/qt5 | |
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 'vcl/qt5')
-rw-r--r-- | vcl/qt5/Qt5Frame.cxx | 2 | ||||
-rw-r--r-- | vcl/qt5/Qt5Object.cxx | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/vcl/qt5/Qt5Frame.cxx b/vcl/qt5/Qt5Frame.cxx index a18af04b5cbd..01e501ab1ba4 100644 --- a/vcl/qt5/Qt5Frame.cxx +++ b/vcl/qt5/Qt5Frame.cxx @@ -165,8 +165,6 @@ Qt5Frame::Qt5Frame(Qt5Frame* pParent, SalFrameStyleFlags nStyle, bool bUseCairo) pChildWindow->setTransientParent(pParentWindow); } - m_aSystemData.nSize = sizeof(SystemEnvData); - // Calling 'QWidget::winId()' implicitly enables native windows to be used // rather than "alien widgets" that are unknown to the windowing system, // s. https://doc.qt.io/qt-5/qwidget.html#native-widgets-vs-alien-widgets diff --git a/vcl/qt5/Qt5Object.cxx b/vcl/qt5/Qt5Object.cxx index 961622eeb893..4deffda7d18e 100644 --- a/vcl/qt5/Qt5Object.cxx +++ b/vcl/qt5/Qt5Object.cxx @@ -41,7 +41,6 @@ Qt5Object::Qt5Object(Qt5Frame* pParent, bool bShow) if (bShow) m_pQWidget->show(); - m_aSystemData.nSize = sizeof(SystemEnvData); m_aSystemData.aShellWindow = reinterpret_cast<sal_IntPtr>(this); //m_aSystemData.pSalFrame = this; m_aSystemData.pWidget = m_pQWidget; |