coverity#705870 Dereference before null check
Change-Id: Ie4588f8cb0f11b831d091b0f478b78d0472af160
This commit is contained in:
@@ -816,13 +816,10 @@ void Outliner::DetectChange (void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Outliner::DetectSelectionChange()
|
||||||
|
|
||||||
|
|
||||||
bool Outliner::DetectSelectionChange (void)
|
|
||||||
{
|
{
|
||||||
bool bSelectionHasChanged = false;
|
bool bSelectionHasChanged = false;
|
||||||
sal_uLong nMarkCount = mpView->GetMarkedObjectList().GetMarkCount();
|
sal_uLong nMarkCount = mpView ? mpView->GetMarkedObjectList().GetMarkCount() : 0;
|
||||||
|
|
||||||
// If mpObj is NULL then we have not yet found our first match.
|
// If mpObj is NULL then we have not yet found our first match.
|
||||||
// Detecting a change makes no sense.
|
// Detecting a change makes no sense.
|
||||||
@@ -853,10 +850,7 @@ bool Outliner::DetectSelectionChange (void)
|
|||||||
return bSelectionHasChanged;
|
return bSelectionHasChanged;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Outliner::RememberStartPosition()
|
||||||
|
|
||||||
|
|
||||||
void Outliner::RememberStartPosition (void)
|
|
||||||
{
|
{
|
||||||
::boost::shared_ptr<ViewShell> pViewShell (mpWeakViewShell.lock());
|
::boost::shared_ptr<ViewShell> pViewShell (mpWeakViewShell.lock());
|
||||||
if ( ! pViewShell)
|
if ( ! pViewShell)
|
||||||
@@ -909,10 +903,7 @@ void Outliner::RememberStartPosition (void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Outliner::RestoreStartPosition()
|
||||||
|
|
||||||
|
|
||||||
void Outliner::RestoreStartPosition (void)
|
|
||||||
{
|
{
|
||||||
bool bRestore = true;
|
bool bRestore = true;
|
||||||
// Take a negative start page index as inidicator that restoring the
|
// Take a negative start page index as inidicator that restoring the
|
||||||
|
Reference in New Issue
Block a user