summaryrefslogtreecommitdiff
path: root/sc/inc/colorscale.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-31 11:25:04 +0200
committerNoel Grandin <noel@peralex.com>2015-08-31 13:03:03 +0200
commit4a5d980ff20ead85e63daf1561050fa7c2830a8f (patch)
tree1311c77b64edb9f9ba934ebe055a0b48e4d7a53b /sc/inc/colorscale.hxx
parentedf9fa4a37261202196e8873169151f376cfd33b (diff)
remove some typedef indirection
which just serves to make the code harder to read Change-Id: Ib681aad99180df26b1cf3f4e23324dc5a86cc299
Diffstat (limited to 'sc/inc/colorscale.hxx')
-rw-r--r--sc/inc/colorscale.hxx17
1 files changed, 8 insertions, 9 deletions
diff --git a/sc/inc/colorscale.hxx b/sc/inc/colorscale.hxx
index 25f2c674cce7..5514e0269016 100644
--- a/sc/inc/colorscale.hxx
+++ b/sc/inc/colorscale.hxx
@@ -245,17 +245,18 @@ private:
mutable boost::scoped_ptr<ScColorFormatCache> mpCache;
};
+typedef std::vector<std::unique_ptr<ScColorScaleEntry>> ScColorScaleEntries;
+
class SC_DLLPUBLIC ScColorScaleFormat : public ScColorFormat
{
private:
- typedef std::vector<std::unique_ptr<ScColorScaleEntry>> ColorScaleEntries;
- ColorScaleEntries maColorScales;
+ ScColorScaleEntries maColorScales;
double GetMinValue() const;
double GetMaxValue() const;
void calcMinMax(double& nMin, double& nMax) const;
- double CalcValue(double nMin, double nMax, ColorScaleEntries::const_iterator& rItr) const;
+ double CalcValue(double nMin, double nMax, ScColorScaleEntries::const_iterator& rItr) const;
public:
ScColorScaleFormat(ScDocument* pDoc);
ScColorScaleFormat(ScDocument* pDoc, const ScColorScaleFormat& rFormat);
@@ -273,12 +274,10 @@ public:
virtual bool NeedsRepaint() const SAL_OVERRIDE;
virtual condformat::ScFormatEntryType GetType() const SAL_OVERRIDE;
- typedef ColorScaleEntries::iterator iterator;
- typedef ColorScaleEntries::const_iterator const_iterator;
- iterator begin();
- const_iterator begin() const;
- iterator end();
- const_iterator end() const;
+ ScColorScaleEntries::iterator begin();
+ ScColorScaleEntries::const_iterator begin() const;
+ ScColorScaleEntries::iterator end();
+ ScColorScaleEntries::const_iterator end() const;
ScColorScaleEntry* GetEntry(size_t nPos);
const ScColorScaleEntry* GetEntry(size_t nPos) const;