summaryrefslogtreecommitdiff
path: root/sc/source/ui/miscdlgs/redcom.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/miscdlgs/redcom.cxx')
-rw-r--r--sc/source/ui/miscdlgs/redcom.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sc/source/ui/miscdlgs/redcom.cxx b/sc/source/ui/miscdlgs/redcom.cxx
index 89e37f823d2d..2a69e4ba013a 100644
--- a/sc/source/ui/miscdlgs/redcom.cxx
+++ b/sc/source/ui/miscdlgs/redcom.cxx
@@ -58,8 +58,8 @@ ScChangeAction *ScRedComDialog::FindPrev(ScChangeAction *pAction)
{
if(pAction!=NULL && pDocShell !=NULL)
{
- ScDocument* pDoc = pDocShell->GetDocument();
- ScChangeViewSettings* pSettings = pDoc->GetChangeViewSettings();
+ ScDocument& rDoc = pDocShell->GetDocument();
+ ScChangeViewSettings* pSettings = rDoc.GetChangeViewSettings();
pAction=pAction->GetPrev();
@@ -67,7 +67,7 @@ ScChangeAction *ScRedComDialog::FindPrev(ScChangeAction *pAction)
{
if( pAction->GetState()==SC_CAS_VIRGIN &&
pAction->IsDialogRoot() &&
- ScViewUtil::IsActionShown(*pAction,*pSettings,*pDoc)) break;
+ ScViewUtil::IsActionShown(*pAction,*pSettings,rDoc)) break;
pAction=pAction->GetPrev();
}
@@ -79,8 +79,8 @@ ScChangeAction *ScRedComDialog::FindNext(ScChangeAction *pAction)
{
if(pAction!=NULL && pDocShell !=NULL)
{
- ScDocument* pDoc = pDocShell->GetDocument();
- ScChangeViewSettings* pSettings = pDoc->GetChangeViewSettings();
+ ScDocument& rDoc = pDocShell->GetDocument();
+ ScChangeViewSettings* pSettings = rDoc.GetChangeViewSettings();
pAction=pAction->GetNext();
@@ -88,7 +88,7 @@ ScChangeAction *ScRedComDialog::FindNext(ScChangeAction *pAction)
{
if( pAction->GetState()==SC_CAS_VIRGIN &&
pAction->IsDialogRoot() &&
- ScViewUtil::IsActionShown(*pAction,*pSettings,*pDoc)) break;
+ ScViewUtil::IsActionShown(*pAction,*pSettings,rDoc)) break;
pAction=pAction->GetNext();
}
@@ -102,7 +102,7 @@ void ScRedComDialog::ReInit(ScChangeAction *pAction)
if(pChangeAction!=NULL && pDocShell !=NULL)
{
OUString aTitle;
- pChangeAction->GetDescription( aTitle, pDocShell->GetDocument());
+ pChangeAction->GetDescription( aTitle, &pDocShell->GetDocument());
pDlg->SetText(aTitle);
aComment=pChangeAction->GetComment();
@@ -142,7 +142,7 @@ void ScRedComDialog::SelectCell()
const ScChangeAction* pAction=pChangeAction;
const ScBigRange& rRange = pAction->GetBigRange();
- if(rRange.IsValid(pDocShell->GetDocument()))
+ if(rRange.IsValid(&pDocShell->GetDocument()))
{
ScViewData* pViewData=ScDocShell::GetViewData();
ScRange aRef=rRange.MakeRange();