coverity#1371265 Missing move assignment operator

Change-Id: I5b7c6992e92e4d096b8230774ed8f4bfaaad5831
This commit is contained in:
Caolán McNamara 2016-12-12 10:02:23 +00:00
parent dd747c0669
commit 554ff8ef0f
3 changed files with 10 additions and 1 deletions

View File

@ -66,6 +66,7 @@ public:
void SetTotalRange( const Range& rTotRange );
void Insert( long nIndex, long nCount = 1 );
void Remove( long nIndex );
void Reset();
const Range& GetTotalRange() const { return aTotRange; }
long FirstSelected();

View File

@ -1069,7 +1069,7 @@ void BrowseBox::Clear()
if(bMultiSelection)
{
assert(uRow.pSel);
*uRow.pSel = MultiSelection();
uRow.pSel->Reset();
}
else
uRow.nSel = BROWSER_ENDOFSELECTION;

View File

@ -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 ) :
aTotRange(rOrig.aTotRange),
nSelCount(rOrig.nSelCount),