summaryrefslogtreecommitdiff
path: root/svx/workben/msview
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-18 19:12:25 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-18 19:12:25 +0000
commitac4addc33a69d912a95926372813550619c6fdf4 (patch)
tree4322f742a6d6be6df03e8cb499700c35cc668bed /svx/workben/msview
parent86cde6e756261d79de98b24ef741bff6f1926ba9 (diff)
cppcheck: silence warnings
Diffstat (limited to 'svx/workben/msview')
-rw-r--r--svx/workben/msview/msview.cxx42
1 files changed, 0 insertions, 42 deletions
diff --git a/svx/workben/msview/msview.cxx b/svx/workben/msview/msview.cxx
index 14df77175275..0cea473cdc65 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;
};