summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/xename.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-11-24 07:48:41 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-11-24 18:39:08 +0100
commitf47455e3cfde26f8acd6419be563c027c4755624 (patch)
tree84ad25368c37c3958770f0c101aa2e43e3f022bf /sc/source/filter/excel/xename.cxx
parentf2931c64d804bf63970bdb9fedf5e57f79a7a3a7 (diff)
change ScRangeName's container to boost::ptr_map
Diffstat (limited to 'sc/source/filter/excel/xename.cxx')
-rw-r--r--sc/source/filter/excel/xename.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/filter/excel/xename.cxx b/sc/source/filter/excel/xename.cxx
index 18e38cb5bc02..77e4f32cf76d 100644
--- a/sc/source/filter/excel/xename.cxx
+++ b/sc/source/filter/excel/xename.cxx
@@ -674,8 +674,8 @@ void XclExpNameManagerImpl::CreateUserNames()
for (; itr != itrEnd; ++itr)
{
// skip definitions of shared formulas
- if (!itr->HasType(RT_SHARED) && !FindNamedExpIndex(SCTAB_GLOBAL, itr->GetIndex()))
- CreateName(SCTAB_GLOBAL, *itr);
+ if (!itr->second->HasType(RT_SHARED) && !FindNamedExpIndex(SCTAB_GLOBAL, itr->second->GetIndex()))
+ CreateName(SCTAB_GLOBAL, *itr->second);
}
//look at every sheet for local range names
ScRangeName::TabNameCopyMap rLocalNames;
@@ -687,8 +687,8 @@ void XclExpNameManagerImpl::CreateUserNames()
for (; itr != itrEnd; ++itr)
{
// skip definitions of shared formulas
- if (!itr->HasType(RT_SHARED) && !FindNamedExpIndex(tabIt->first, itr->GetIndex()))
- CreateName(tabIt->first, *itr);
+ if (!itr->second->HasType(RT_SHARED) && !FindNamedExpIndex(tabIt->first, itr->second->GetIndex()))
+ CreateName(tabIt->first, *itr->second);
}
}
}