diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-14 12:44:47 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-15 11:47:12 +0200 |
commit | 71b809959bb8f775d83dc52628448bb8b8322b28 (patch) | |
tree | f9aa4308050eb7d55611068602c0cf0e3c1b3690 /hwpfilter | |
parent | 135907f2061550624ee1859745d94eee01849070 (diff) |
remove unnecessary use of void in function declarations
ie.
void f(void);
becomes
void f();
I used the following command to make the changes:
git grep -lP '\(\s*void\s*\)' -- *.cxx \
| xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;'
and ran it for both .cxx and .hxx files.
Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/attributes.cxx | 2 | ||||
-rw-r--r-- | hwpfilter/source/attributes.hxx | 2 | ||||
-rw-r--r-- | hwpfilter/source/grammar.cxx | 2 | ||||
-rw-r--r-- | hwpfilter/source/hbox.cxx | 18 | ||||
-rw-r--r-- | hwpfilter/source/hfont.cxx | 4 | ||||
-rw-r--r-- | hwpfilter/source/hinfo.cxx | 2 | ||||
-rw-r--r-- | hwpfilter/source/hiodev.cxx | 12 | ||||
-rw-r--r-- | hwpfilter/source/hstyle.cxx | 4 | ||||
-rw-r--r-- | hwpfilter/source/htags.cxx | 2 | ||||
-rw-r--r-- | hwpfilter/source/hwpfile.cxx | 12 | ||||
-rw-r--r-- | hwpfilter/source/hwpreader.hxx | 2 | ||||
-rw-r--r-- | hwpfilter/source/lexer.cxx | 2 |
12 files changed, 32 insertions, 32 deletions
diff --git a/hwpfilter/source/attributes.cxx b/hwpfilter/source/attributes.cxx index ea1dc43b4c2d..a5749e8e0dd7 100644 --- a/hwpfilter/source/attributes.cxx +++ b/hwpfilter/source/attributes.cxx @@ -46,7 +46,7 @@ struct AttributeListImpl_impl std::vector<struct TagAttribute> vecAttribute; }; -sal_Int16 SAL_CALL AttributeListImpl::getLength(void) throw (RuntimeException, std::exception) +sal_Int16 SAL_CALL AttributeListImpl::getLength() throw (RuntimeException, std::exception) { return (sal_Int16)m_pImpl->vecAttribute.size(); } diff --git a/hwpfilter/source/attributes.hxx b/hwpfilter/source/attributes.hxx index 4972dbd614cf..de1bde89548f 100644 --- a/hwpfilter/source/attributes.hxx +++ b/hwpfilter/source/attributes.hxx @@ -45,7 +45,7 @@ public: AttributeListImpl( const AttributeListImpl & ); public: - virtual sal_Int16 SAL_CALL getLength(void) throw (RuntimeException, std::exception) SAL_OVERRIDE; + virtual sal_Int16 SAL_CALL getLength() throw (RuntimeException, std::exception) SAL_OVERRIDE; virtual OUString SAL_CALL getNameByIndex(sal_Int16 i) throw (RuntimeException, std::exception) SAL_OVERRIDE; virtual OUString SAL_CALL getTypeByIndex(sal_Int16 i) throw (RuntimeException, std::exception) SAL_OVERRIDE; virtual OUString SAL_CALL getTypeByName(const OUString& aName) throw (RuntimeException, std::exception) SAL_OVERRIDE; diff --git a/hwpfilter/source/grammar.cxx b/hwpfilter/source/grammar.cxx index 979d15e14550..77984b97c9fa 100644 --- a/hwpfilter/source/grammar.cxx +++ b/hwpfilter/source/grammar.cxx @@ -483,7 +483,7 @@ int yydebug; /* nonzero means print parse trace */ #ifdef YYPARSE_PARAM int yyparse (void *); #else -int yyparse (void); +int yyparse(); #endif #endif diff --git a/hwpfilter/source/hbox.cxx b/hwpfilter/source/hbox.cxx index 7fe3c64f9fb6..ddcd815d5e78 100644 --- a/hwpfilter/source/hbox.cxx +++ b/hwpfilter/source/hbox.cxx @@ -46,7 +46,7 @@ HBox::~HBox() } -int HBox::WSize(void) +int HBox::WSize() { static const int wsize[32] = { @@ -85,7 +85,7 @@ SkipData::SkipData(hchar hch) { } -SkipData::~SkipData(void) +SkipData::~SkipData() { delete[]data_block; } @@ -105,7 +105,7 @@ FieldCode::FieldCode() reserved2 = new char[22]; } -FieldCode::~FieldCode(void) +FieldCode::~FieldCode() { delete[] str1; delete[] str2; @@ -124,7 +124,7 @@ Bookmark::Bookmark() { } -Bookmark::~Bookmark(void) +Bookmark::~Bookmark() { } @@ -353,7 +353,7 @@ TxtBox::TxtBox() reserved[0] = reserved[1] = 0; } -TxtBox::~TxtBox(void) +TxtBox::~TxtBox() { delete[]cell; @@ -401,7 +401,7 @@ Picture::Picture() { } -Picture::~Picture(void) +Picture::~Picture() { delete[]follow; if( pictype == PICTYPE_DRAW && picinfo.picdraw.hdo ) @@ -430,7 +430,7 @@ hunit Picture::Height(CharShape * sty) // line(14) // hidden(15) -Hidden::~Hidden(void) +Hidden::~Hidden() { std::list < HWPPara* >::iterator it = plist.begin(); for (; it != plist.end(); ++it) @@ -442,7 +442,7 @@ Hidden::~Hidden(void) // header/footer(16) -HeaderFooter::~HeaderFooter(void) +HeaderFooter::~HeaderFooter() { std::list < HWPPara* >::iterator it = plist.begin(); for (; it != plist.end(); ++it) @@ -454,7 +454,7 @@ HeaderFooter::~HeaderFooter(void) // footnote(17) -Footnote::~Footnote(void) +Footnote::~Footnote() { std::list < HWPPara* >::iterator it = plist.begin(); for (; it != plist.end(); ++it) diff --git a/hwpfilter/source/hfont.cxx b/hwpfilter/source/hfont.cxx index 6be9ef0dcb31..6607261d3cdb 100644 --- a/hwpfilter/source/hfont.cxx +++ b/hwpfilter/source/hfont.cxx @@ -23,7 +23,7 @@ #include "hfont.h" /* 이 함수는 HWP 파일을 해석하는 부분이다. */ -HWPFont::HWPFont(void) +HWPFont::HWPFont() { for (int ii = 0; ii < NLanguage; ii++) { @@ -33,7 +33,7 @@ HWPFont::HWPFont(void) } -HWPFont::~HWPFont(void) +HWPFont::~HWPFont() { for (int ii = 0; ii < NLanguage; ii++) { diff --git a/hwpfilter/source/hinfo.cxx b/hwpfilter/source/hinfo.cxx index 0c2afb67a718..4a8f35f6acd6 100644 --- a/hwpfilter/source/hinfo.cxx +++ b/hwpfilter/source/hinfo.cxx @@ -64,7 +64,7 @@ HWPInfo::HWPInfo() memset(bordermargin, 0, sizeof(bordermargin)); } -HWPInfo::~HWPInfo(void) +HWPInfo::~HWPInfo() { delete[] info_block; info_block = 0; diff --git a/hwpfilter/source/hiodev.cxx b/hwpfilter/source/hiodev.cxx index b5c564cc38a9..dd072b8c495b 100644 --- a/hwpfilter/source/hiodev.cxx +++ b/hwpfilter/source/hiodev.cxx @@ -135,14 +135,14 @@ bool HStreamIODev::open() } -void HStreamIODev::flush(void) +void HStreamIODev::flush() { if (_gzfp) gz_flush(_gzfp, Z_FINISH); } -void HStreamIODev::close(void) +void HStreamIODev::close() { /* 플러시한 후 닫는다. */ this->flush(); @@ -152,7 +152,7 @@ void HStreamIODev::close(void) } -int HStreamIODev::state(void) const +int HStreamIODev::state() const { return 0; } @@ -290,17 +290,17 @@ bool HMemIODev::open() } -void HMemIODev::flush(void) +void HMemIODev::flush() { } -void HMemIODev::close(void) +void HMemIODev::close() { } -int HMemIODev::state(void) const +int HMemIODev::state() const { if (pos <= length) return 0; diff --git a/hwpfilter/source/hstyle.cxx b/hwpfilter/source/hstyle.cxx index 0d2c8674cefa..ccd75e704641 100644 --- a/hwpfilter/source/hstyle.cxx +++ b/hwpfilter/source/hstyle.cxx @@ -39,14 +39,14 @@ struct StyleData static char buffer[MAXSTYLENAME + 1]; -HWPStyle::HWPStyle(void) +HWPStyle::HWPStyle() { nstyles = 0; style = 0; } -HWPStyle::~HWPStyle(void) +HWPStyle::~HWPStyle() { delete[]DATA; nstyles = 0; diff --git a/hwpfilter/source/htags.cxx b/hwpfilter/source/htags.cxx index 2629479f702b..428048812eaf 100644 --- a/hwpfilter/source/htags.cxx +++ b/hwpfilter/source/htags.cxx @@ -56,7 +56,7 @@ EmPicture::EmPicture(size_t tsize) #ifdef WIN32 #define unlink _unlink #endif -EmPicture::~EmPicture(void) +EmPicture::~EmPicture() { if (data) delete[]data; diff --git a/hwpfilter/source/hwpfile.cxx b/hwpfilter/source/hwpfile.cxx index 862f85f6f364..6e1d488ddef8 100644 --- a/hwpfilter/source/hwpfile.cxx +++ b/hwpfilter/source/hwpfile.cxx @@ -218,25 +218,25 @@ HIODev *HWPFile::SetIODevice(HIODev * new_hiodev) // end of HIODev wrapper -bool HWPFile::InfoRead(void) +bool HWPFile::InfoRead() { return _hwpInfo.Read(*this); } -bool HWPFile::FontRead(void) +bool HWPFile::FontRead() { return _hwpFont.Read(*this); } -bool HWPFile::StyleRead(void) +bool HWPFile::StyleRead() { return _hwpStyle.Read(*this); } -bool HWPFile::ParaListRead(void) +bool HWPFile::ParaListRead() { return ReadParaList(plist); } @@ -277,7 +277,7 @@ bool HWPFile::ReadParaList(std::list < HWPPara* > &aplist, unsigned char flag) return true; } -void HWPFile::TagsRead(void) +void HWPFile::TagsRead() { while (true) { @@ -696,7 +696,7 @@ int HWPFile::compareParaShape(ParaShape *shape) } -HWPFile *GetCurrentDoc(void) +HWPFile *GetCurrentDoc() { return HWPFile::cur_doc; } diff --git a/hwpfilter/source/hwpreader.hxx b/hwpfilter/source/hwpreader.hxx index c3ef10af05b7..93bcc9e1b006 100644 --- a/hwpfilter/source/hwpreader.hxx +++ b/hwpfilter/source/hwpreader.hxx @@ -173,7 +173,7 @@ public: // XServiceInfo OUString SAL_CALL getImplementationName() throw (RuntimeException, std::exception) SAL_OVERRIDE; - Sequence< OUString > SAL_CALL getSupportedServiceNames(void) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; //XExtendedFilterDetection diff --git a/hwpfilter/source/lexer.cxx b/hwpfilter/source/lexer.cxx index 1424d3bd8b04..85632209c09c 100644 --- a/hwpfilter/source/lexer.cxx +++ b/hwpfilter/source/lexer.cxx @@ -1757,7 +1757,7 @@ YY_BUFFER_STATE new_buffer; #ifdef YY_USE_PROTOS -void yy_load_buffer_state( void ) +void yy_load_buffer_state() #else void yy_load_buffer_state() #endif |