summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-31 16:16:53 +0200
committerNoel Grandin <noel@peralex.com>2016-09-01 11:05:21 +0200
commit03f14c776093eea721aa8edda4ee38ed644b5caf (patch)
tree32cc0185b455ef25185a71f822dc9f9cc21ba1dc /chart2
parenta53e6e2b3cc92e46961260137208eacec474093f (diff)
std::list<float> -> std::deque
Change-Id: I698b8e35ec0a22390b42c03699155e48b5ccedba
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/charttypes/GL3DBarChart.cxx6
-rw-r--r--chart2/source/view/inc/GL3DBarChart.hxx4
2 files changed, 5 insertions, 5 deletions
diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx
index a10a06e8654e..0715c22ccd56 100644
--- a/chart2/source/view/charttypes/GL3DBarChart.cxx
+++ b/chart2/source/view/charttypes/GL3DBarChart.cxx
@@ -1207,7 +1207,7 @@ void GL3DBarChart::updateDataUpdateFPS()
void GL3DBarChart::recordBarHistory(sal_uInt32 &nBarID, float &nVal)
{
- std::list<float>& aList = maBarHistory[nBarID];
+ std::deque<float>& aList = maBarHistory[nBarID];
if(aList.size() == HISTORY_NUM)
aList.pop_front();
aList.push_back(nVal);
@@ -1249,7 +1249,7 @@ void GL3DBarChart::updateClickEvent()
{
if (maRenderEvent == EVENT_CLICK || maRenderEvent == EVENT_AUTO_FLY || maRenderEvent == EVENT_SHOW_SELECT)
{
- std::list<float>& aList = maBarHistory[mnSelectBarId];
+ std::deque<float>& aList = maBarHistory[mnSelectBarId];
sal_uInt32 nIdex = 0;
sal_uInt32 nBarIdArray[DISPLAY_BARS_NUM] = {0};
OUString aTitle;
@@ -1275,7 +1275,7 @@ void GL3DBarChart::updateClickEvent()
nMaxXCoord = std::max(nMaxXCoord, 0.55f + nTextWidth);
}
getNeighborBarID(mnSelectBarId, nBarIdArray);
- for (std::list<float>::iterator it = aList.begin();it != aList.end();++it)
+ for (std::deque<float>::iterator it = aList.begin();it != aList.end();++it)
{
if (nIdex + 1 < aList.size())
{
diff --git a/chart2/source/view/inc/GL3DBarChart.hxx b/chart2/source/view/inc/GL3DBarChart.hxx
index d04c397a2e01..e8d774636111 100644
--- a/chart2/source/view/inc/GL3DBarChart.hxx
+++ b/chart2/source/view/inc/GL3DBarChart.hxx
@@ -12,7 +12,7 @@
#include <GL3DPlotterBase.hxx>
-#include <list>
+#include <deque>
#include <vector>
#include "VDataSeries.hxx"
@@ -180,7 +180,7 @@ private:
TimeValue maFPSRenderEndTime;
TimeValue maDataUpdateStartTime;
TimeValue maDataUpdateEndTime;
- std::map<sal_uInt32, std::list<float> > maBarHistory;
+ std::map<sal_uInt32, std::deque<float> > maBarHistory;
std::vector<sal_uInt32> maVectorNearest;
std::map<sal_uInt32, float> maDistanceMap;
std::map<sal_uInt32, sal_uInt32> maBarColorMap;