From 0e0e3caf382f793481b638417540d05c1d1ed24a Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Mon, 2 Apr 2012 16:50:15 +0100 Subject: Don't instantiate ScDocFunc objects, get them from the doc-shell --- sc/source/ui/namedlg/namedlg.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sc/source/ui/namedlg') diff --git a/sc/source/ui/namedlg/namedlg.cxx b/sc/source/ui/namedlg/namedlg.cxx index 72d95ba88cff..40cf4fd9fe5d 100644 --- a/sc/source/ui/namedlg/namedlg.cxx +++ b/sc/source/ui/namedlg/namedlg.cxx @@ -212,10 +212,7 @@ void ScNameDlg::SetReference( const ScRange& rRef, ScDocument* pDocP ) sal_Bool ScNameDlg::Close() { if (mbDataChanged && !mbCloseWithoutUndo) - { - ScDocFunc aFunc(*mpViewData->GetDocShell()); - aFunc.ModifyAllRangeNames(maRangeMap); - } + mpViewData->GetDocFunc().ModifyAllRangeNames(maRangeMap); return DoClose( ScNameDlgWrapper::GetChildWindowId() ); } -- cgit