Bug 1085312 - Document why ColorPattern ctor is marked explicit. r=Bas

This commit is contained in:
Jonathan Watt 2015-01-23 09:45:32 +00:00
parent 6dbdde097f
commit 81a3818309

View File

@ -188,6 +188,8 @@ protected:
class ColorPattern : public Pattern
{
public:
// Explicit because consumers should generally use ToDeviceColor when
// creating a ColorPattern.
explicit ColorPattern(const Color &aColor)
: mColor(aColor)
{}