diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-12-03 18:40:35 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-12-03 20:15:01 +0100 |
commit | c8fd64a7d909036c4b701d3aaee11b37f378bcce (patch) | |
tree | e653900b08e6153f908018dd80eb137b193a20c4 | |
parent | 377bc06165f4a5cad8f67d69e021c51cb2a64180 (diff) |
ptr_map does not need a pointer as template argument
I don't understand why c++ did not complain about it but it resulted in
really strange crashs
-rw-r--r-- | sc/inc/undorangename.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/undo/undorangename.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/inc/undorangename.hxx b/sc/inc/undorangename.hxx index df6ff23e97ab..8a252c259b39 100644 --- a/sc/inc/undorangename.hxx +++ b/sc/inc/undorangename.hxx @@ -54,7 +54,7 @@ public: virtual String GetComment() const; private: - void DoChange(const boost::ptr_map<rtl::OUString, ScRangeName*>& rNames); + void DoChange(const boost::ptr_map<rtl::OUString, ScRangeName>& rNames); private: boost::ptr_map<rtl::OUString, ScRangeName> maOldNames; diff --git a/sc/source/ui/undo/undorangename.cxx b/sc/source/ui/undo/undorangename.cxx index 7bc565a3a023..9bf31b265ef0 100644 --- a/sc/source/ui/undo/undorangename.cxx +++ b/sc/source/ui/undo/undorangename.cxx @@ -92,7 +92,7 @@ String ScUndoAllRangeNames::GetComment() const return ScGlobal::GetRscString(STR_UNDO_RANGENAMES); } -void ScUndoAllRangeNames::DoChange(const boost::ptr_map<rtl::OUString, ScRangeName*>& rNames) +void ScUndoAllRangeNames::DoChange(const boost::ptr_map<rtl::OUString, ScRangeName>& rNames) { ScDocument& rDoc = *pDocShell->GetDocument(); |