diff options
author | Ursache Vladimir <ursache@collabora.co.uk> | 2015-02-14 02:46:47 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2015-02-14 01:51:54 +0100 |
commit | 50a36041e18dc2a595259b5414ded409687dc47b (patch) | |
tree | 2f61edb3336449a6649eb5defbd0ca50d5c966b8 /include/tools/color.hxx | |
parent | 1e475fef47fe6bd9dba6d830aaf0b6c12dc88881 (diff) |
related tdf#89004 move to std:set instead of std::vector
Conflicts:
sc/source/core/data/document10.cxx
sw/source/core/doc/docfmt.cxx
Change-Id: I1312f476607ea3a78b162a7e59323b0a142f6629
Diffstat (limited to 'include/tools/color.hxx')
-rw-r--r-- | include/tools/color.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/tools/color.hxx b/include/tools/color.hxx index ea921878e48c..92ea21011dbb 100644 --- a/include/tools/color.hxx +++ b/include/tools/color.hxx @@ -112,6 +112,11 @@ public: sal_uInt8((rBColor.getBlue() * 255.0) + 0.5)); } + bool operator<(const Color& b) const + { + return mnColor < b.GetColor(); + } + void SetRed( sal_uInt8 nRed ); sal_uInt8 GetRed() const { return COLORDATA_RED( mnColor ); } void SetGreen( sal_uInt8 nGreen ); |