mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 13:07:52 +00:00
Bug 1085312 - Document why ColorPattern ctor is marked explicit. r=Bas
This commit is contained in:
parent
712f521262
commit
8977be59fb
@ -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)
|
||||
{}
|
||||
|
Loading…
x
Reference in New Issue
Block a user