summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-06-12 14:06:28 +0200
committerNoel Grandin <noel@peralex.com>2014-06-17 10:55:17 +0200
commit3e82897353e576dc6e3fbf55371fda5a0c3415df (patch)
tree71c2f03128885000efae1852dccb504f8355c79e /hwpfilter
parentec95abf2d8afeec38c9225ea49caa0e08d82b504 (diff)
improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hpara.cxx4
-rw-r--r--hwpfilter/source/hpara.h2
-rw-r--r--hwpfilter/source/hstyle.cxx4
-rw-r--r--hwpfilter/source/hstyle.h2
4 files changed, 2 insertions, 10 deletions
diff --git a/hwpfilter/source/hpara.cxx b/hwpfilter/source/hpara.cxx
index 7b8c34decd02..5a9be4eec83b 100644
--- a/hwpfilter/source/hpara.cxx
+++ b/hwpfilter/source/hpara.cxx
@@ -198,10 +198,6 @@ CharShape *HWPPara::GetCharShape(int pos)
}
-ParaShape *HWPPara::GetParaShape(void)
-{
- return &pshape;
-}
HBox *HWPPara::readHBox(HWPFile & hwpf)
diff --git a/hwpfilter/source/hpara.h b/hwpfilter/source/hpara.h
index f382a96f9049..49c1f3008996 100644
--- a/hwpfilter/source/hpara.h
+++ b/hwpfilter/source/hpara.h
@@ -130,7 +130,7 @@ class DLLEXPORT HWPPara
/**
* Returns the style of paragraph.
*/
- ParaShape *GetParaShape(void);
+ ParaShape *GetParaShape(void) { return &pshape;}
/**
* Returns previous paragraph.
diff --git a/hwpfilter/source/hstyle.cxx b/hwpfilter/source/hstyle.cxx
index 5b91dc4a5e4d..6be9bd85f343 100644
--- a/hwpfilter/source/hstyle.cxx
+++ b/hwpfilter/source/hstyle.cxx
@@ -53,10 +53,6 @@ HWPStyle::~HWPStyle(void)
}
-int HWPStyle::Num(void) const
-{
- return nstyles;
-}
char *HWPStyle::GetName(int n) const
diff --git a/hwpfilter/source/hstyle.h b/hwpfilter/source/hstyle.h
index 1dd37ea48ccb..443102983535 100644
--- a/hwpfilter/source/hstyle.h
+++ b/hwpfilter/source/hstyle.h
@@ -36,7 +36,7 @@ class DLLEXPORT HWPStyle
HWPStyle( void );
~HWPStyle( void );
- int Num( void ) const;
+ int Num( void ) const { return nstyles;}
char *GetName( int n ) const;
CharShape *GetCharShape( int n ) const;
ParaShape *GetParaShape( int n ) const;