summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-11-14 13:24:46 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-11-14 21:22:39 +0100
commitc6f67ba90352c6506d5131a5f7ecca1f727ce377 (patch)
tree84e934af238e3e9897aa25d842f282aa4ed58d9a /sc/source/ui
parent556d4f458d92745a8f95ecb12fefa76e68cb9251 (diff)
Details always dereferences ScDocument argument
Change-Id: If56c03af49606ffe6b5d4d782bd4a848aa79d8c2 Reviewed-on: https://gerrit.libreoffice.org/82695 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/app/inputhdl.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index 8f9e7fd9b733..62ea17b0cc69 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -377,7 +377,7 @@ handle_r1c1:
if ( nPos > nStart )
{
OUString aTest = rFormula.copy( nStart, nPos-nStart );
- const ScAddress::Details aAddrDetails( &rDoc, aCursorPos );
+ const ScAddress::Details aAddrDetails( rDoc, aCursorPos );
ScRefFlags nFlags = aRange.ParseAny( aTest, &rDoc, aAddrDetails );
if ( nFlags & ScRefFlags::VALID )
{
@@ -569,7 +569,7 @@ void ScInputHandler::UpdateRange( sal_uInt16 nIndex, const ScRange& rNew )
ScRange aJustified = rNew;
aJustified.PutInOrder(); // Always display Ref in the Formula the right way
ScDocument* pDoc = pDocView->GetViewData().GetDocument();
- const ScAddress::Details aAddrDetails( pDoc, aCursorPos );
+ const ScAddress::Details aAddrDetails( *pDoc, aCursorPos );
OUString aNewStr(aJustified.Format(rData.nFlags, pDoc, aAddrDetails));
ESelection aOldSel( 0, nOldStart, 0, nOldEnd );
SfxItemSet aSet( mpEditEngine->GetEmptyItemSet() );
@@ -3232,7 +3232,7 @@ void ScInputHandler::SetReference( const ScRange& rRef, const ScDocument& rDoc )
// Create string from reference, in the syntax of the document being edited.
OUString aRefStr;
- const ScAddress::Details aAddrDetails( pThisDoc, aCursorPos );
+ const ScAddress::Details aAddrDetails( *pThisDoc, aCursorPos );
if (bOtherDoc)
{
// Reference to other document
@@ -3837,7 +3837,7 @@ void ScInputHandler::NotifyChange( const ScInputHdlState* pState,
if ( pInputWin || comphelper::LibreOfficeKit::isActive()) // Named range input
{
OUString aPosStr;
- const ScAddress::Details aAddrDetails( &rDoc, aCursorPos );
+ const ScAddress::Details aAddrDetails( rDoc, aCursorPos );
// Is the range a name?
//! Find by Timer?