diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-05-05 10:58:02 -0400 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-05-05 10:58:02 -0400 |
commit | e22027a42f3f7cb3ad33e407c4c1230038d73a03 (patch) | |
tree | d51d50ac4a321382cb5f26625c3f20f73b114b89 | |
parent | c66d1b9fcc2244b4fd8940f17ebf4e772f09c84e (diff) |
Let's not use const_iterator here, as MSVC complains about it.
-rw-r--r-- | sc/source/core/data/table2.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index 0760e549c..67d94bc4f 100644 --- a/sc/source/core/data/table2.cxx +++ b/sc/source/core/data/table2.cxx @@ -158,12 +158,12 @@ void ScTable::InsertRow( SCCOL nStartCol, SCCOL nEndCol, SCROW nStartRow, SCSIZE if (!maRowManualBreaks.empty()) { // Copy all breaks up to nStartRow (non-inclusive). - ::std::set<SCROW>::const_iterator itr1 = maRowManualBreaks.lower_bound(nStartRow); + ::std::set<SCROW>::iterator itr1 = maRowManualBreaks.lower_bound(nStartRow); ::std::set<SCROW> aNewBreaks(maRowManualBreaks.begin(), itr1); // Copy all breaks from nStartRow (inclusive) to the last element, // but add nSize to each value. - ::std::set<SCROW>::const_iterator itr2 = maRowManualBreaks.end(); + ::std::set<SCROW>::iterator itr2 = maRowManualBreaks.end(); for (; itr1 != itr2; ++itr1) aNewBreaks.insert(static_cast<SCROW>(*itr1 + nSize)); |