diff options
author | Noel Grandin <noel@peralex.com> | 2016-06-01 10:09:07 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-02 06:32:25 +0000 |
commit | 84d15d6e5418bd5024bb21b6c8fdc2700667ac04 (patch) | |
tree | 1d9af624bc2a13c2b57a317354a9b64c77f90a71 /sw | |
parent | 8e8a88ec1ad02c153ae3c7653edc81716dc91b7a (diff) |
loplugin:unuseddefaultparams
Change-Id: I0fe173534dc2e70c3d507eae757a91e48a26acfc
Reviewed-on: https://gerrit.libreoffice.org/25757
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/dbmgr.hxx | 2 | ||||
-rw-r--r-- | sw/inc/shellio.hxx | 2 | ||||
-rw-r--r-- | sw/inc/swabstdlg.hxx | 5 | ||||
-rw-r--r-- | sw/source/filter/html/htmlflywriter.cxx | 8 | ||||
-rw-r--r-- | sw/source/filter/html/wrthtml.hxx | 2 | ||||
-rw-r--r-- | sw/source/filter/writer/writer.cxx | 9 | ||||
-rw-r--r-- | sw/source/ui/dialog/swdlgfact.cxx | 5 | ||||
-rw-r--r-- | sw/source/ui/dialog/swdlgfact.hxx | 3 | ||||
-rw-r--r-- | sw/source/uibase/dbui/dbmgr.cxx | 4 |
9 files changed, 16 insertions, 24 deletions
diff --git a/sw/inc/dbmgr.hxx b/sw/inc/dbmgr.hxx index 1e409a6d9226..81f32d375837 100644 --- a/sw/inc/dbmgr.hxx +++ b/sw/inc/dbmgr.hxx @@ -289,7 +289,7 @@ public: inline void SetMergeSilent( bool bVal ) { bMergeSilent = bVal; } /// Merging of data records into fields. - bool Merge( const SwMergeDescriptor& rMergeDesc, vcl::Window* pParent = nullptr ); + bool Merge( const SwMergeDescriptor& rMergeDesc ); void MergeCancel(); inline bool IsMergeOk() { return MergeStatus::OK == m_aMergeStatus; }; diff --git a/sw/inc/shellio.hxx b/sw/inc/shellio.hxx index 4f8ba19b6830..ebd19461cc42 100644 --- a/sw/inc/shellio.hxx +++ b/sw/inc/shellio.hxx @@ -375,7 +375,7 @@ protected: bool CopyNextPam( SwPaM ** ); void PutNumFormatFontsInAttrPool(); - void PutEditEngFontsInAttrPool( bool bIncl_CJK_CTL = true ); + void PutEditEngFontsInAttrPool(); virtual sal_uLong WriteStream() = 0; void SetBaseURL( const OUString& rURL ) { sBaseURL = rURL; } diff --git a/sw/inc/swabstdlg.hxx b/sw/inc/swabstdlg.hxx index 87b375207f28..ba64db4ec5e3 100644 --- a/sw/inc/swabstdlg.hxx +++ b/sw/inc/swabstdlg.hxx @@ -416,11 +416,10 @@ public: SwWrtShell* pWrtSh) = 0; virtual AbstractMailMergeDlg* CreateMailMergeDlg( int nResId, vcl::Window* pParent, SwWrtShell& rSh, - const OUString& rSourceName, + const OUString& rSourceName, const OUString& rTableName, sal_Int32 nCommandType, - const css::uno::Reference< css::sdbc::XConnection>& xConnection, - css::uno::Sequence< css::uno::Any >* pSelection = nullptr ) = 0; + const css::uno::Reference< css::sdbc::XConnection>& xConnection ) = 0; virtual AbstractMailMergeCreateFromDlg* CreateMailMergeCreateFromDlg(vcl::Window* pParent) = 0; virtual AbstractMailMergeFieldConnectionsDlg* CreateMailMergeFieldConnectionsDlg(vcl::Window* pParent) = 0; virtual VclAbstractDialog* CreateMultiTOXMarkDlg(vcl::Window* pParent, SwTOXMgr &rTOXMgr) = 0; diff --git a/sw/source/filter/html/htmlflywriter.cxx b/sw/source/filter/html/htmlflywriter.cxx index cb44b34033c6..b2e95fa773b9 100644 --- a/sw/source/filter/html/htmlflywriter.cxx +++ b/sw/source/filter/html/htmlflywriter.cxx @@ -520,10 +520,9 @@ void SwHTMLWriter::OutFrameFormat( sal_uInt8 nMode, const SwFrameFormat& rFrameF OString SwHTMLWriter::OutFrameFormatOptions( const SwFrameFormat &rFrameFormat, const OUString& rAlternateText, - sal_uInt32 nFrameOpts, - const OString &rEndTags ) + sal_uInt32 nFrameOpts ) { - OString sRetEndTags(rEndTags); + OString sRetEndTags; OStringBuffer sOut; const SfxPoolItem* pItem; const SfxItemSet& rItemSet = rFrameFormat.GetAttrSet(); @@ -796,11 +795,10 @@ OString SwHTMLWriter::OutFrameFormatOptions( const SwFrameFormat &rFrameFormat, { sOut.append('<').append(OOO_STRING_SVTOOLS_HTML_linebreak). append(' ').append(OOO_STRING_SVTOOLS_HTML_O_clear). - append("=\"").append(pStr).append("\">").append(rEndTags); + append("=\"").append(pStr).append("\">"); sRetEndTags = sOut.makeStringAndClear(); } } - assert(sRetEndTags.endsWith(rEndTags)); // fdo#58286 return sRetEndTags; } diff --git a/sw/source/filter/html/wrthtml.hxx b/sw/source/filter/html/wrthtml.hxx index 2c8e2fde17e2..646afc05e13d 100644 --- a/sw/source/filter/html/wrthtml.hxx +++ b/sw/source/filter/html/wrthtml.hxx @@ -464,7 +464,7 @@ public: // Frame-Formats ausgeben und ggf. ein <BR CLEAR=...> vorne an // rEndTags anhaengen OString OutFrameFormatOptions( const SwFrameFormat& rFrameFormat, const OUString& rAltText, - sal_uInt32 nFrameOpts, const OString& rEndTags = OString() ); + sal_uInt32 nFrameOpts ); void writeFrameFormatOptions(HtmlWriter& aHtml, const SwFrameFormat& rFrameFormat, const OUString& rAltText, sal_uInt32 nFrameOpts); diff --git a/sw/source/filter/writer/writer.cxx b/sw/source/filter/writer/writer.cxx index 4b089d9f3725..222f76db7560 100644 --- a/sw/source/filter/writer/writer.cxx +++ b/sw/source/filter/writer/writer.cxx @@ -391,17 +391,14 @@ void Writer::PutNumFormatFontsInAttrPool() } } -void Writer::PutEditEngFontsInAttrPool( bool bIncl_CJK_CTL ) +void Writer::PutEditEngFontsInAttrPool() { SfxItemPool& rPool = pDoc->GetAttrPool(); if( rPool.GetSecondaryPool() ) { AddFontItems_( rPool, EE_CHAR_FONTINFO ); - if( bIncl_CJK_CTL ) - { - AddFontItems_( rPool, EE_CHAR_FONTINFO_CJK ); - AddFontItems_( rPool, EE_CHAR_FONTINFO_CTL ); - } + AddFontItems_( rPool, EE_CHAR_FONTINFO_CJK ); + AddFontItems_( rPool, EE_CHAR_FONTINFO_CTL ); } } diff --git a/sw/source/ui/dialog/swdlgfact.cxx b/sw/source/ui/dialog/swdlgfact.cxx index 760333cc657e..02d250d80d7f 100644 --- a/sw/source/ui/dialog/swdlgfact.cxx +++ b/sw/source/ui/dialog/swdlgfact.cxx @@ -998,14 +998,13 @@ AbstractMailMergeDlg * SwAbstractDialogFactory_Impl::CreateMailMergeDlg( int nRe const OUString& rSourceName, const OUString& rTableName, sal_Int32 nCommandType, - const uno::Reference< sdbc::XConnection>& xConnection, - uno::Sequence< uno::Any >* pSelection ) + const uno::Reference< sdbc::XConnection>& xConnection ) { VclPtr<SwMailMergeDlg> pDlg; switch ( nResId ) { case DLG_MAILMERGE : - pDlg = VclPtr<SwMailMergeDlg>::Create( pParent, rSh, rSourceName, rTableName, nCommandType, xConnection, pSelection ); + pDlg = VclPtr<SwMailMergeDlg>::Create( pParent, rSh, rSourceName, rTableName, nCommandType, xConnection, nullptr ); break; default: break; diff --git a/sw/source/ui/dialog/swdlgfact.hxx b/sw/source/ui/dialog/swdlgfact.hxx index b74968e715c6..d087c47a782e 100644 --- a/sw/source/ui/dialog/swdlgfact.hxx +++ b/sw/source/ui/dialog/swdlgfact.hxx @@ -457,8 +457,7 @@ public: const OUString& rSourceName, const OUString& rTableName, sal_Int32 nCommandType, - const css::uno::Reference< css::sdbc::XConnection>& xConnection, - css::uno::Sequence< css::uno::Any >* pSelection = nullptr ) override; + const css::uno::Reference< css::sdbc::XConnection>& xConnection ) override; virtual AbstractMailMergeCreateFromDlg* CreateMailMergeCreateFromDlg(vcl::Window* pParent) override; virtual AbstractMailMergeFieldConnectionsDlg* CreateMailMergeFieldConnectionsDlg(vcl::Window* pParent) override; virtual VclAbstractDialog* CreateMultiTOXMarkDlg(vcl::Window* pParent, SwTOXMgr &rTOXMgr) override; diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx index 97a0d92cc285..d962b3862c87 100644 --- a/sw/source/uibase/dbui/dbmgr.cxx +++ b/sw/source/uibase/dbui/dbmgr.cxx @@ -423,7 +423,7 @@ static bool lcl_GetColumnCnt(SwDSParam* pParam, const OUString& rColumnName, }; // import data -bool SwDBManager::Merge( const SwMergeDescriptor& rMergeDesc, vcl::Window* pParent ) +bool SwDBManager::Merge( const SwMergeDescriptor& rMergeDesc ) { assert( !bInMerge && !pImpl->pMergeData && "merge already activated!" ); @@ -549,7 +549,7 @@ bool SwDBManager::Merge( const SwMergeDescriptor& rMergeDesc, vcl::Window* pPare case DBMGR_MERGE_FILE: case DBMGR_MERGE_SHELL: // save files and send them as e-Mail if required - bRet = MergeMailFiles(pWorkShell, rMergeDesc, pParent); + bRet = MergeMailFiles(pWorkShell, rMergeDesc, nullptr); break; default: |