summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/nameuno.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-13 21:14:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-14 14:51:07 +0200
commitb3dc39b0d4bc1d2f906cd25c41636719dd838d2f (patch)
tree5f70cedff10805f8cce14d43868a3d87a263dd0d /sc/source/ui/unoobj/nameuno.cxx
parent14b40ec7be7ca8315848034591e3c3a246d5a8dd (diff)
both branches dereference ScDocument* arg
Change-Id: I63a2b7908fe332c177ea0385c3ea9b9cd136f824 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102622 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/unoobj/nameuno.cxx')
-rw-r--r--sc/source/ui/unoobj/nameuno.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/nameuno.cxx b/sc/source/ui/unoobj/nameuno.cxx
index 4b30e29f1e34..a55d138687d3 100644
--- a/sc/source/ui/unoobj/nameuno.cxx
+++ b/sc/source/ui/unoobj/nameuno.cxx
@@ -193,7 +193,7 @@ void ScNamedRangeObj::Modify_Impl( const OUString* pNewName, const ScTokenArray*
if (pNewTokens)
pNew = new ScRangeData( &rDoc, aInsName, *pNewTokens, aPos, nType );
else
- pNew = new ScRangeData( &rDoc, aInsName, aContent, aPos, nType, eGrammar );
+ pNew = new ScRangeData( rDoc, aInsName, aContent, aPos, nType, eGrammar );
pNew->SetIndex( pOld->GetIndex() );
@@ -492,7 +492,7 @@ void SAL_CALL ScNamedRangesObj::addNewByName( const OUString& aName,
{
std::unique_ptr<ScRangeName> pNewRanges(new ScRangeName( *pNames ));
// GRAM_API for API compatibility.
- ScRangeData* pNew = new ScRangeData( &rDoc, aName, aContent,
+ ScRangeData* pNew = new ScRangeData( rDoc, aName, aContent,
aPos, nNewType,formula::FormulaGrammar::GRAM_API );
if ( pNewRanges->insert(pNew) )
{