Kaydet (Commit) bfa76fc1 authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Ivan Timofeev

Convert tools/table.hxx to std::map in ScChartPositionMap class in SC module

Along the way, simplify the ScChartPositioner::CreatePositionMap method,
it was using a unnecessarily complicated approach to allocating new objects.
üst b35980d9
......@@ -32,10 +32,14 @@
// -----------------------------------------------------------------------
#include "rangelst.hxx"
#include <map>
class ScAddress;
class Table;
// map of row number to ScAddress*
typedef std::map<sal_uLong, ScAddress*> RowMap;
// map of column number to RowMap*
typedef std::map<sal_uLong, RowMap*> ColumnMap;
class ScChartPositionMap
{
......@@ -51,7 +55,7 @@ class ScChartPositionMap
ScChartPositionMap( SCCOL nChartCols, SCROW nChartRows,
SCCOL nColAdd, // header columns
SCROW nRowAdd, // header rows
Table& rCols // table with col tables with address*
ColumnMap& rCols // table with col tables with address*
);
~ScChartPositionMap(); //! deletes all ScAddress*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment