[PATCH] cppcheck: remove unused variable

Andy Holder andy.m.holder at gmail.com
Sat Jan 29 09:37:53 PST 2011


---
 sw/source/ui/dbui/mmaddressblockpage.cxx |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/sw/source/ui/dbui/mmaddressblockpage.cxx b/sw/source/ui/dbui/mmaddressblockpage.cxx
index 528a349..617cc14 100644
--- a/sw/source/ui/dbui/mmaddressblockpage.cxx
+++ b/sw/source/ui/dbui/mmaddressblockpage.cxx
@@ -1067,8 +1067,6 @@ SwAssignFieldsControl::SwAssignFieldsControl(
         m_aPreviews.push_back(pNewPreview);
     }
     ListBox* pBottomBox = m_aMatches[rHeaders.Count() -1];
-    long nYBottom = pBottomBox->GetPosPixel().Y();
-    nYBottom += pBottomBox->GetDropDownPosSizePixel().GetHeight();
     m_aVScroll.SetRange(Range(0, rHeaders.Count()));
     m_aVScroll.SetPageSize((aOutputSize.Height() - nHBHeight - m_nLBStartTopPos)/ m_nYOffset);
     m_aVScroll.EnableDrag();
-- 
1.7.3.5


--MP_/csnRX9g0tM83IbY+GE7hGbm
Content-Type: text/x-patch
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename=0001-cppcheck-variable-never-used-components.patch



More information about the LibreOffice mailing list