Kaydet (Commit) 97e00047 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

IcnCursor_Impl::GetSortListPos bVertical param wants to be of type bool

Change-Id: I2d6cbddb5dbaca33b41d87aefbb5559b3b30f674
üst 94e4f13d
......@@ -584,7 +584,7 @@ class IcnCursor_Impl
sal_uInt16 GetSortListPos(
SvxIconChoiceCtrlEntryPtrVec& rList,
long nValue,
int bVertical);
bool bVertical);
SvxIconChoiceCtrlEntry* SearchCol(
sal_uInt16 nCol,
sal_uInt16 nTop,
......
......@@ -34,7 +34,7 @@ IcnCursor_Impl::~IcnCursor_Impl()
}
sal_uInt16 IcnCursor_Impl::GetSortListPos( SvxIconChoiceCtrlEntryPtrVec& rList, long nValue,
int bVertical )
bool bVertical )
{
sal_uInt16 nCount = rList.size();
if( !nCount )
......@@ -85,11 +85,11 @@ void IcnCursor_Impl::ImplCreate()
nX = sal::static_int_cast< short >(nCols - 1);
SvxIconChoiceCtrlEntryPtrVec& rColEntry = (*xColumns)[nX];
sal_uInt16 nIns = GetSortListPos( rColEntry, rRect.Top(), sal_True );
sal_uInt16 nIns = GetSortListPos( rColEntry, rRect.Top(), true );
rColEntry.insert( rColEntry.begin() + nIns, pEntry );
SvxIconChoiceCtrlEntryPtrVec& rRowEntry = (*xRows)[nY];
nIns = GetSortListPos( rRowEntry, rRect.Left(), sal_False );
nIns = GetSortListPos( rRowEntry, rRect.Left(), false );
rRowEntry.insert( rRowEntry.begin() + nIns, pEntry );
pEntry->nX = nX;
......@@ -497,7 +497,7 @@ void IcnCursor_Impl::CreateGridAjustData( IconChoiceMap& rLists, SvxIconChoiceCt
SvxIconChoiceCtrlEntry* pEntry = pView->aEntries[ nCur ];
const Rectangle& rRect = pView->GetEntryBoundRect( pEntry );
short nY = (short)( ((rRect.Top()+rRect.Bottom())/2) / pView->nGridDY );
sal_uInt16 nIns = GetSortListPos( rLists[nY], rRect.Left(), sal_False );
sal_uInt16 nIns = GetSortListPos( rLists[nY], rRect.Left(), false );
rLists[ nY ].insert( rLists[ nY ].begin() + nIns, pEntry );
}
}
......@@ -518,7 +518,7 @@ void IcnCursor_Impl::CreateGridAjustData( IconChoiceMap& rLists, SvxIconChoiceCt
short nY = (short)( ((rRect.Top()+rRect.Bottom())/2) / pView->nGridDY );
if( nY == nRefRow )
{
sal_uInt16 nIns = GetSortListPos( rRow, rRect.Left(), sal_False );
sal_uInt16 nIns = GetSortListPos( rRow, rRect.Left(), false );
rRow.insert( rRow.begin() + nIns, pEntry );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment