diff options
Diffstat (limited to 'sc/source/ui/namedlg/namepast.cxx')
-rw-r--r-- | sc/source/ui/namedlg/namepast.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/namedlg/namepast.cxx b/sc/source/ui/namedlg/namepast.cxx index 52fde2ef009e..85cb1e55d8ef 100644 --- a/sc/source/ui/namedlg/namepast.cxx +++ b/sc/source/ui/namedlg/namepast.cxx @@ -37,9 +37,9 @@ ScNamePasteDlg::ScNamePasteDlg( Window * pParent, ScDocShell* pShell, bool ) get(m_pBtnPaste, "paste"); get(m_pBtnClose, "close"); - ScDocument* pDoc = pShell->GetDocument(); + ScDocument& rDoc = pShell->GetDocument(); std::map<OUString, ScRangeName*> aCopyMap; - pDoc->GetRangeNameMap(aCopyMap); + rDoc.GetRangeNameMap(aCopyMap); std::map<OUString, ScRangeName*>::iterator itr = aCopyMap.begin(), itrEnd = aCopyMap.end(); for (; itr != itrEnd; ++itr) { |