coverity#1371265 Missing move assignment operator
Change-Id: I5b7c6992e92e4d096b8230774ed8f4bfaaad5831
This commit is contained in:
parent
dd747c0669
commit
554ff8ef0f
@ -66,6 +66,7 @@ public:
|
|||||||
void SetTotalRange( const Range& rTotRange );
|
void SetTotalRange( const Range& rTotRange );
|
||||||
void Insert( long nIndex, long nCount = 1 );
|
void Insert( long nIndex, long nCount = 1 );
|
||||||
void Remove( long nIndex );
|
void Remove( long nIndex );
|
||||||
|
void Reset();
|
||||||
|
|
||||||
const Range& GetTotalRange() const { return aTotRange; }
|
const Range& GetTotalRange() const { return aTotRange; }
|
||||||
long FirstSelected();
|
long FirstSelected();
|
||||||
|
@ -1069,7 +1069,7 @@ void BrowseBox::Clear()
|
|||||||
if(bMultiSelection)
|
if(bMultiSelection)
|
||||||
{
|
{
|
||||||
assert(uRow.pSel);
|
assert(uRow.pSel);
|
||||||
*uRow.pSel = MultiSelection();
|
uRow.pSel->Reset();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
uRow.nSel = BROWSER_ENDOFSELECTION;
|
uRow.nSel = BROWSER_ENDOFSELECTION;
|
||||||
|
@ -72,6 +72,14 @@ MultiSelection::MultiSelection():
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MultiSelection::Reset()
|
||||||
|
{
|
||||||
|
aTotRange = Range(0, -1);
|
||||||
|
bCurValid = false;
|
||||||
|
// clear the old sub selections
|
||||||
|
ImplClear();
|
||||||
|
}
|
||||||
|
|
||||||
MultiSelection::MultiSelection( const MultiSelection& rOrig ) :
|
MultiSelection::MultiSelection( const MultiSelection& rOrig ) :
|
||||||
aTotRange(rOrig.aTotRange),
|
aTotRange(rOrig.aTotRange),
|
||||||
nSelCount(rOrig.nSelCount),
|
nSelCount(rOrig.nSelCount),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user