diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-09-03 12:09:16 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-09-03 12:09:16 +0200 |
commit | bcfd7f7614251d7904a771b9abbabb3dea3554dd (patch) | |
tree | e4f100461fdccb595fbeb50d823a5354313c5e32 /vcl/source/window/window.cxx | |
parent | 511235147dc19b9bd6adeb42789439214cf491e3 (diff) |
clang-tidy clang-analyzer-deadcode.DeadStores
...the two consecutive writes to nX had been like that ever since the code
block's inception in 4716735ba7d0ad133ff018481f94d6b4f201bbd9 "#103362# improve
positioning and resizing of system windows," so assume the first one is indeed
unnecessary.
Change-Id: I52a9a8a15fa38a0d14f9e521e15b7f71013f46c0
Diffstat (limited to 'vcl/source/window/window.cxx')
-rw-r--r-- | vcl/source/window/window.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 75ef53214b8c..5a51cfc71910 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -2934,8 +2934,6 @@ void Window::setPosSizePixel( long nX, long nY, myWidth = nWidth; nFlags |= PosSizeFlags::X; nSysFlags |= SAL_FRAME_POSSIZE_X; - nX = mpWindowImpl->mpFrame->GetUnmirroredGeometry().nX - pParent->mpWindowImpl->mpFrame->GetUnmirroredGeometry().nX - - mpWindowImpl->mpFrame->GetUnmirroredGeometry().nLeftDecoration; nX = pParent->mpWindowImpl->mpFrame->GetUnmirroredGeometry().nX - mpWindowImpl->mpFrame->GetUnmirroredGeometry().nLeftDecoration + pParent->mpWindowImpl->mpFrame->GetUnmirroredGeometry().nWidth - myWidth - 1 - mpWindowImpl->mpFrame->GetUnmirroredGeometry().nX; if(!(nFlags & PosSizeFlags::Y)) |