From ba233e87efddf0a6751b35784dca1c805364ff3b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 11 Feb 2015 13:20:49 +0200 Subject: remove unnecessary parenthesis in return statements found with $ git grep -lP 'return\s*\(\s*\w+\s*\)\s*;' Change-Id: Ic51606877a9edcadeb647c5bf17bc928b69ab60e --- lotuswordpro/source/filter/lwp9reader.cxx | 2 +- lotuswordpro/source/filter/lwpobjfactory.cxx | 4 ++-- lotuswordpro/source/filter/lwpobjid.cxx | 2 +- lotuswordpro/source/filter/lwpobjstrm.cxx | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'lotuswordpro/source/filter') diff --git a/lotuswordpro/source/filter/lwp9reader.cxx b/lotuswordpro/source/filter/lwp9reader.cxx index b2a91ec06973..f23c8fcbd076 100644 --- a/lotuswordpro/source/filter/lwp9reader.cxx +++ b/lotuswordpro/source/filter/lwp9reader.cxx @@ -169,7 +169,7 @@ sal_Int64 Lwp9Reader::GetFileSize() sal_Int64 size = m_pDocStream->Seek( STREAM_SEEK_TO_END); m_pDocStream->Seek(pos); - return(size); + return size; } /** diff --git a/lotuswordpro/source/filter/lwpobjfactory.cxx b/lotuswordpro/source/filter/lwpobjfactory.cxx index 13635c588fd3..d72535da872f 100644 --- a/lotuswordpro/source/filter/lwpobjfactory.cxx +++ b/lotuswordpro/source/filter/lwpobjfactory.cxx @@ -677,7 +677,7 @@ rtl::Reference LwpObjectFactory::CreateObject(sal_uInt32 type, LwpObj m_IdToObjList.insert(LwpIdToObjMap::value_type(objHdr.GetID(), newObj)); } - return(newObj); + return newObj; } /** * @descr query object by object id @@ -719,7 +719,7 @@ rtl::Reference LwpObjectFactory::FindObject(const LwpObjectID &objID) { LwpIdToObjMap::const_iterator it = m_IdToObjList.find(objID); if (it != m_IdToObjList.end()) { - return((*it).second); + return (*it).second; } else { diff --git a/lotuswordpro/source/filter/lwpobjid.cxx b/lotuswordpro/source/filter/lwpobjid.cxx index 54b4778e2175..887955171414 100644 --- a/lotuswordpro/source/filter/lwpobjid.cxx +++ b/lotuswordpro/source/filter/lwpobjid.cxx @@ -208,7 +208,7 @@ rtl::Reference LwpObjectID::obj(VO_TYPE tag) const pObj.clear(); } } - return(pObj); + return pObj; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/lotuswordpro/source/filter/lwpobjstrm.cxx b/lotuswordpro/source/filter/lwpobjstrm.cxx index 8eb8d431fc70..55fcae7206be 100644 --- a/lotuswordpro/source/filter/lwpobjstrm.cxx +++ b/lotuswordpro/source/filter/lwpobjstrm.cxx @@ -128,11 +128,11 @@ sal_uInt8* LwpObjectStream::AllocBuffer(sal_uInt16 size) { if(size<=100) { - return(m_SmallBuffer); + return m_SmallBuffer; } else { - return (new sal_uInt8[size]); + return new sal_uInt8[size]; } } /** @@ -388,7 +388,7 @@ sal_uInt16 LwpObjectStream::DecompressBuffer(sal_uInt8* pDst, sal_uInt8* pSrc, s throw BadDecompress(); } - return(static_cast(DstSize)); + return static_cast(DstSize); } /** * @descr quick read string with 1252 -- cgit