summaryrefslogtreecommitdiff
path: root/vcl/generic
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-06-09 10:09:42 +0200
committerNoel Grandin <noel@peralex.com>2014-06-09 10:10:13 +0200
commit184a00b96235f6432294ded63ce4a4a318effdb5 (patch)
treee4ae0e00cb168fa43d280cfb51a50515258b5320 /vcl/generic
parent534015ad4fd08823b4393dab1ad5d42dedd7bf62 (diff)
loplugin: inlinesimplememberfunctions
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
Diffstat (limited to 'vcl/generic')
-rw-r--r--vcl/generic/glyphs/gcach_ftyp.cxx4
-rw-r--r--vcl/generic/print/common_gfx.cxx5
-rw-r--r--vcl/generic/print/glyphset.cxx15
-rw-r--r--vcl/generic/print/glyphset.hxx6
4 files changed, 3 insertions, 27 deletions
diff --git a/vcl/generic/glyphs/gcach_ftyp.cxx b/vcl/generic/glyphs/gcach_ftyp.cxx
index 47adb0929535..395c0ea817d9 100644
--- a/vcl/generic/glyphs/gcach_ftyp.cxx
+++ b/vcl/generic/glyphs/gcach_ftyp.cxx
@@ -620,10 +620,6 @@ const OString* ServerFont::GetFontFileName() const
return mpFontInfo->GetFontFileName();
}
-bool ServerFont::TestFont() const
-{
- return mbFaceOk;
-}
ServerFont::~ServerFont()
{
diff --git a/vcl/generic/print/common_gfx.cxx b/vcl/generic/print/common_gfx.cxx
index aa6e7c1c513e..fbf7ba6f000d 100644
--- a/vcl/generic/print/common_gfx.cxx
+++ b/vcl/generic/print/common_gfx.cxx
@@ -87,11 +87,6 @@ PrinterGfx::Init (const JobData& rData)
return true;
}
-sal_uInt16
-PrinterGfx::GetBitCount ()
-{
- return mnDepth;
-}
PrinterGfx::PrinterGfx()
: mfScaleX(0.0)
diff --git a/vcl/generic/print/glyphset.cxx b/vcl/generic/print/glyphset.cxx
index 9a87b7e26c62..016c8f70fa28 100644
--- a/vcl/generic/print/glyphset.cxx
+++ b/vcl/generic/print/glyphset.cxx
@@ -59,23 +59,8 @@ GlyphSet::~GlyphSet ()
/* FIXME delete the glyphlist ??? */
}
-sal_Int32
-GlyphSet::GetFontID ()
-{
- return mnFontID;
-}
-fonttype::type
-GlyphSet::GetFontType ()
-{
- return meBaseType;
-}
-bool
-GlyphSet::IsVertical ()
-{
- return mbVertical;
-}
bool
GlyphSet::GetCharID (
diff --git a/vcl/generic/print/glyphset.hxx b/vcl/generic/print/glyphset.hxx
index d8cd49d22be3..e6f8fa73c811 100644
--- a/vcl/generic/print/glyphset.hxx
+++ b/vcl/generic/print/glyphset.hxx
@@ -94,15 +94,15 @@ public:
GlyphSet (sal_Int32 nFontID, bool bVertical);
~GlyphSet ();
- sal_Int32 GetFontID ();
- fonttype::type GetFontType ();
+ sal_Int32 GetFontID () { return mnFontID;}
+ fonttype::type GetFontType () { return meBaseType;}
static OString
GetReencodedFontName (rtl_TextEncoding nEnc,
const OString &rFontName);
static OString
GetGlyphSetEncodingName (rtl_TextEncoding nEnc,
const OString &rFontName);
- bool IsVertical ();
+ bool IsVertical () { return mbVertical;}
void DrawText (PrinterGfx &rGfx, const Point& rPoint,
const sal_Unicode* pStr, sal_Int16 nLen,