diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-23 08:54:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-23 22:25:34 +0200 |
commit | 428d17a2ed068dcbb21eb66338ee7fcf2cfa8929 (patch) | |
tree | f84f14c91fa8661b89413db29bfbfe01cf2580f9 /sc/inc/refdata.hxx | |
parent | df7abb6981546aebebe69dc944f2a6555a7b669c (diff) |
some places where ScDocument* is never passed a nullptr
and so some nullptr checks can be removed
Change-Id: I7dedc2c6d054d9749db9766eaa3a5681842b2b69
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103239
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/inc/refdata.hxx')
-rw-r--r-- | sc/inc/refdata.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/inc/refdata.hxx b/sc/inc/refdata.hxx index dce91b5091d9..4688793d6447 100644 --- a/sc/inc/refdata.hxx +++ b/sc/inc/refdata.hxx @@ -92,14 +92,14 @@ public: void SetRelName( bool bVal ) { Flags.bRelName = bVal; } bool IsRelName() const { return Flags.bRelName; } - bool Valid(const ScDocument* pDoc) const; - bool ColValid(const ScDocument* pDoc) const; - bool RowValid(const ScDocument* pDoc) const; + bool Valid(const ScDocument& rDoc) const; + bool ColValid(const ScDocument& rDoc) const; + bool RowValid(const ScDocument& rDoc) const; bool TabValid() const; /** In external references nTab is -1 if the external document was not loaded but the sheet was cached, or >=0 if the external document was loaded. */ - bool ValidExternal(const ScDocument* pDoc) const; + bool ValidExternal(const ScDocument& rDoc) const; ScAddress toAbs( ScSheetLimits& rLimits, const ScAddress& rPos ) const; ScAddress toAbs( const ScDocument& rDoc, const ScAddress& rPos ) const; @@ -147,12 +147,12 @@ struct ScComplexRefData /// InitFlags and set range, relative to rPos if rRef1 and rRef2 say so. void InitFromRefAddresses( const ScDocument& rDoc, const ScRefAddress& rRef1, const ScRefAddress& rRef2, const ScAddress& rPos ); - bool Valid(const ScDocument* pDoc) const; + bool Valid(const ScDocument& rDoc) const; /** In external references nTab is -1 for the start tab and -1 for the end tab if one sheet and the external document was not loaded but sheet was cached, or >=0 also if more than one sheets. */ - bool ValidExternal(const ScDocument* pDoc) const; + bool ValidExternal(const ScDocument& rDoc) const; /** Whether this references entire columns, A:A */ bool IsEntireCol() const |