[Libreoffice-commits] core.git: vcl/inc
Chris Sherlock
chris.sherlock79 at gmail.com
Thu Jan 14 19:13:59 PST 2016
vcl/inc/impfont.hxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit ab2e32588d169ec293a2d7dfa86a3ab6984db86f
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
Date: Fri Jan 15 14:12:51 2016 +1100
vcl: make constructors of ImplFont explicit
Change-Id: I7d65f6fa8d20d96261cf8d63383902e68c39882a
diff --git a/vcl/inc/impfont.hxx b/vcl/inc/impfont.hxx
index cd27b74..8e13494 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();
More information about the Libreoffice-commits
mailing list