vcl/source/window/window.cxx | 2 -- 1 file changed, 2 deletions(-) New commits: commit bcfd7f7614251d7904a771b9abbabb3dea3554dd Author: Stephan Bergmann <sberg...@redhat.com> Date: Thu Sep 3 12:09:16 2015 +0200
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 diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 75ef532..5a51cfc 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)) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits