diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-04-02 16:50:15 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-04-02 20:22:40 +0100 |
commit | 0e0e3caf382f793481b638417540d05c1d1ed24a (patch) | |
tree | 4cf268f5dd5b0e44cf49c32681af11033ec33246 /sc/source/ui/namedlg/namedlg.cxx | |
parent | f834d986d5a1e7e66f4029476d058fbf5f63d8d1 (diff) |
Don't instantiate ScDocFunc objects, get them from the doc-shell
Diffstat (limited to 'sc/source/ui/namedlg/namedlg.cxx')
-rw-r--r-- | sc/source/ui/namedlg/namedlg.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
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() ); } |