diff options
author | Noel Grandin <noel@peralex.com> | 2014-06-09 10:09:42 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-06-09 10:10:13 +0200 |
commit | 184a00b96235f6432294ded63ce4a4a318effdb5 (patch) | |
tree | e4ae0e00cb168fa43d280cfb51a50515258b5320 /hwpfilter | |
parent | 534015ad4fd08823b4393dab1ad5d42dedd7bf62 (diff) |
loplugin: inlinesimplememberfunctions
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/hpara.cxx | 4 | ||||
-rw-r--r-- | hwpfilter/source/hpara.h | 2 | ||||
-rw-r--r-- | hwpfilter/source/hwpfile.cxx | 4 | ||||
-rw-r--r-- | hwpfilter/source/hwpfile.h | 2 |
4 files changed, 2 insertions, 10 deletions
diff --git a/hwpfilter/source/hpara.cxx b/hwpfilter/source/hpara.cxx index bc17e0c8cc1a..7b8c34decd02 100644 --- a/hwpfilter/source/hpara.cxx +++ b/hwpfilter/source/hpara.cxx @@ -188,10 +188,6 @@ bool HWPPara::Read(HWPFile & hwpf, unsigned char flag) } -HWPPara *HWPPara::Next(void) -{ - return _next; -} CharShape *HWPPara::GetCharShape(int pos) diff --git a/hwpfilter/source/hpara.h b/hwpfilter/source/hpara.h index a3d0ae0b6f2e..f382a96f9049 100644 --- a/hwpfilter/source/hpara.h +++ b/hwpfilter/source/hpara.h @@ -139,7 +139,7 @@ class DLLEXPORT HWPPara /** * Returns next paragraph. */ - HWPPara *Next(void); + HWPPara *Next(void) { return _next;} int HomePos(int line) const; int EndPos(int line) const; diff --git a/hwpfilter/source/hwpfile.cxx b/hwpfilter/source/hwpfile.cxx index dabca79d219e..5f5b8e3c3ebc 100644 --- a/hwpfilter/source/hwpfile.cxx +++ b/hwpfilter/source/hwpfile.cxx @@ -133,10 +133,6 @@ int HWPFile::Open(HStream & stream) } -int HWPFile::State(void) const -{ - return error_code; -} int HWPFile::SetState(int errcode) diff --git a/hwpfilter/source/hwpfile.h b/hwpfilter/source/hwpfile.h index a7bf4fabb475..d6d1a39afae1 100644 --- a/hwpfilter/source/hwpfile.h +++ b/hwpfilter/source/hwpfile.h @@ -116,7 +116,7 @@ class DLLEXPORT HWPFile * Say current state * @returns 0 if normal, otherwise error code. If it's bigger than USER_ERROR_BIT, it is internally using error, otherwise it's system error which is able to get the message @ref strerror() method. */ - int State( void ) const; + int State( void ) const { return error_code;} /** * Sets the current state */ |