summaryrefslogtreecommitdiff
path: root/sc/inc/detfunc.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/inc/detfunc.hxx')
-rw-r--r--sc/inc/detfunc.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/inc/detfunc.hxx b/sc/inc/detfunc.hxx
index b8d1d2c0bc81..38de23a954ae 100644
--- a/sc/inc/detfunc.hxx
+++ b/sc/inc/detfunc.hxx
@@ -53,7 +53,7 @@ class SC_DLLPUBLIC ScDetectiveFunc
static Color nCommentColor;
static bool bColorsInitialized;
- ScDocument* pDoc;
+ ScDocument& rDoc;
SCTAB nTab;
enum class DrawPosMode
@@ -117,7 +117,7 @@ class SC_DLLPUBLIC ScDetectiveFunc
void Modified();
public:
- ScDetectiveFunc(ScDocument* pDocument, SCTAB nTable) : pDoc(pDocument),nTab(nTable) {}
+ ScDetectiveFunc(ScDocument& rDocument, SCTAB nTable) : rDoc(rDocument),nTab(nTable) {}
bool ShowSucc( SCCOL nCol, SCROW nRow );
bool ShowPred( SCCOL nCol, SCROW nRow );