[Libreoffice-commits] .: svx/workben

Caolán McNamara caolan at kemper.freedesktop.org
Sat Dec 18 11:12:44 PST 2010


 svx/workben/msview/msview.cxx |   42 ------------------------------------------
 1 file changed, 42 deletions(-)

New commits:
commit 7a1c6d18f2fbd410c9420fa068ad80e1d1d3d40d
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Dec 18 19:12:25 2010 +0000

    cppcheck: silence warnings

diff --git a/svx/workben/msview/msview.cxx b/svx/workben/msview/msview.cxx
index ef1ee2e..a2a84d5 100644
--- a/svx/workben/msview/msview.cxx
+++ b/svx/workben/msview/msview.cxx
@@ -388,7 +388,6 @@ const Atom* Atom::findNextChildAtom( sal_uInt16 nRecType, sal_uInt16 nRecInstanc
 Atom* Atom::findFirstEqualAtom( Atom* pCompare, Atom* pContainer, Atom* pSearch, int& nDistance )
 {
     nDistance = 0;
-    Atom* pRet = 0;
 
     while( pSearch )
     {
@@ -515,48 +514,7 @@ public:
         SvLBoxString::Paint( rPos, rOutDev, nViewDataEntryFlags, pEntry );
 
         rOutDev.SetTextColor( aOldTextColor );
-
-/*
-        Color aOldFillColor = rOutDev.GetFillColor();
-
-        SvTreeListBox* pTreeBox = static_cast< SvTreeListBox* >( &rOutDev );
-        long nX = pTreeBox->GetSizePixel().Width();
-
-        ScrollBar* pVScroll = pTreeBox->GetVScroll();
-        if ( pVScroll->IsVisible() )
-        {
-            nX -= pVScroll->GetSizePixel().Width();
-        }
-
-        SvViewDataItem* pItem = rOutDev.GetViewDataItem( pEntry, this );
-        nX -= pItem->aSize.Height();
-
-        long nSize = pItem->aSize.Height() / 2;
-        long nHalfSize = nSize / 2;
-        long nY = rPos.Y() + nHalfSize;
-
-        if ( aOldFillColor == COL_WHITE )
-        {
-            rOutDev.SetFillColor( Color( COL_BLACK ) );
-        }
-        else
-        {
-            rOutDev.SetFillColor( Color( COL_WHITE ) );
-        }
-
-        long n = 0;
-        while ( n <= nHalfSize )
-        {
-            rOutDev.DrawRect( Rectangle( nX+n, nY+n, nX+n, nY+nSize-n ) );
-            n++;
-        }
-
-        rOutDev.SetFillColor( aOldFillColor );
-*/
     }
-
-private:
-    Image* mpImage;
 };
 
 


More information about the Libreoffice-commits mailing list