diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-15 14:12:51 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-15 14:12:51 +1100 |
commit | ab2e32588d169ec293a2d7dfa86a3ab6984db86f (patch) | |
tree | 3951b7c297ceccd6e22526d2a9702eee4c74e4be /vcl/inc | |
parent | cc8a30f51860e31639c3be31d356311479dd3027 (diff) |
vcl: make constructors of ImplFont explicit
Change-Id: I7d65f6fa8d20d96261cf8d63383902e68c39882a
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/impfont.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/inc/impfont.hxx b/vcl/inc/impfont.hxx index cd27b7449d92..8e134941f02d 100644 --- a/vcl/inc/impfont.hxx +++ b/vcl/inc/impfont.hxx @@ -30,10 +30,8 @@ class ImplFont { public: - ImplFont(); - ImplFont( const ImplFont& ); - - bool operator==( const ImplFont& ) const; + explicit ImplFont(); + explicit ImplFont( const ImplFont& ); FontPitch GetPitch() { if(mePitch==PITCH_DONTKNOW) AskConfig(); return mePitch; } FontFamily GetFamily() { if(meFamily==FAMILY_DONTKNOW) AskConfig(); return meFamily; } @@ -41,6 +39,8 @@ public: FontWeight GetWeight() { if(meWeight==WEIGHT_DONTKNOW) AskConfig(); return meWeight; } FontWidth GetWidthType() { if(meWidthType==WIDTH_DONTKNOW)AskConfig(); return meWidthType; } + bool operator==( const ImplFont& ) const; + private: friend class vcl::Font; void AskConfig(); |