summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-19 17:51:05 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-19 17:51:05 +0200
commitdd95fe935bf532cded46b1bdfae5d5ca8b4d5a84 (patch)
treed75162cad293e9ca63581f18ee4a33fc508b15fb /sfx2
parent34100b30c87123fc631d5536158ffb6443258e40 (diff)
loplugin:defaultparams
Change-Id: I6cd2eeba413ef518413f765eabc12b9705b6acb2
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/linkmgr2.cxx2
-rw-r--r--sfx2/source/control/templatelocalview.cxx4
-rw-r--r--sfx2/source/dialog/dinfdlg.cxx16
-rw-r--r--sfx2/source/dialog/itemconnect.cxx4
-rw-r--r--sfx2/source/dialog/mgetempl.cxx4
-rw-r--r--sfx2/source/dialog/versdlg.cxx2
-rw-r--r--sfx2/source/doc/docfile.cxx2
-rw-r--r--sfx2/source/doc/objstor.cxx2
-rw-r--r--sfx2/source/view/viewfrm.cxx4
9 files changed, 20 insertions, 20 deletions
diff --git a/sfx2/source/appl/linkmgr2.cxx b/sfx2/source/appl/linkmgr2.cxx
index fe9d1e851250..d56c276e005f 100644
--- a/sfx2/source/appl/linkmgr2.cxx
+++ b/sfx2/source/appl/linkmgr2.cxx
@@ -567,7 +567,7 @@ OUString lcl_DDE_RelToAbs( const OUString& rTopic, const OUString& rBaseURL )
if( INetProtocol::NotValid == aURL.GetProtocol() )
osl::FileBase::getFileURLFromSystemPath(rTopic, sRet);
if( sRet.isEmpty() )
- sRet = URIHelper::SmartRel2Abs( INetURLObject(rBaseURL), rTopic, URIHelper::GetMaybeFileHdl(), true );
+ sRet = URIHelper::SmartRel2Abs( INetURLObject(rBaseURL), rTopic, URIHelper::GetMaybeFileHdl() );
return sRet;
}
diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx
index 7a431c24f8c8..ab8e0b9c6da4 100644
--- a/sfx2/source/control/templatelocalview.cxx
+++ b/sfx2/source/control/templatelocalview.cxx
@@ -156,8 +156,8 @@ void TemplateLocalView::showRegion(ThumbnailViewItem *pItem)
mnCurRegionId = static_cast<TemplateContainerItem*>(pItem)->mnRegionId+1;
maCurRegionName = pItem->maTitle;
- maAllButton->Show(true);
- maFTName->Show(true);
+ maAllButton->Show();
+ maFTName->Show();
insertItems(reinterpret_cast<TemplateContainerItem*>(pItem)->maTemplates);
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index c66e27bd8f82..aca083a01051 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -180,7 +180,7 @@ OUString ConvertDateTime_Impl( const OUString& rName,
const OUString pDelim ( ", " );
OUString aStr( rWrapper.getDate( aD ) );
aStr += pDelim;
- aStr += rWrapper.getTime( aT, true );
+ aStr += rWrapper.getTime( aT );
OUString aAuthor = comphelper::string::stripStart(rName, ' ');
if (!aAuthor.isEmpty())
{
@@ -2257,7 +2257,7 @@ CmisValue::CmisValue( vcl::Window* pParent, const OUString& aStr )
{
m_pUIBuilder = new VclBuilder( pParent, getUIRootDir(), "sfx/ui/cmisline.ui");
get( m_aValueEdit, "value");
- m_aValueEdit->Show( true );
+ m_aValueEdit->Show();
m_aValueEdit->SetText( aStr );
}
@@ -2266,8 +2266,8 @@ CmisDateTime::CmisDateTime( vcl::Window* pParent, const util::DateTime& aDateTim
m_pUIBuilder = new VclBuilder( pParent, getUIRootDir(), "sfx/ui/cmisline.ui");
get( m_aDateField, "date");
get( m_aTimeField, "time");
- m_aDateField->Show( true );
- m_aTimeField->Show( true );
+ m_aDateField->Show();
+ m_aTimeField->Show();
m_aDateField->SetDate( Date( aDateTime ) );
m_aTimeField->SetTime( tools::Time( aDateTime ) );
}
@@ -2277,8 +2277,8 @@ CmisYesNo::CmisYesNo( vcl::Window* pParent, bool bValue )
m_pUIBuilder = new VclBuilder( pParent, getUIRootDir(), "sfx/ui/cmisline.ui");
get( m_aYesButton, "yes");
get( m_aNoButton, "no");
- m_aYesButton->Show( true );
- m_aNoButton->Show( true );
+ m_aYesButton->Show();
+ m_aNoButton->Show();
if ( bValue )
m_aYesButton->Check( );
else
@@ -2461,9 +2461,9 @@ void CmisPropertiesWindow::AddLine( const OUString& sId, const OUString& sName,
}
pNewLine->m_aName->SetText( sName );
- pNewLine->m_aName->Show( true );
+ pNewLine->m_aName->Show();
pNewLine->m_aType->SetText( sType );
- pNewLine->m_aType->Show( true );
+ pNewLine->m_aType->Show();
m_aCmisPropertiesLines.push_back( pNewLine );
}
diff --git a/sfx2/source/dialog/itemconnect.cxx b/sfx2/source/dialog/itemconnect.cxx
index 7c7b7d4a8301..832766028963 100644
--- a/sfx2/source/dialog/itemconnect.cxx
+++ b/sfx2/source/dialog/itemconnect.cxx
@@ -46,13 +46,13 @@ sal_uInt16 ItemWrapperHelper::GetWhichId( const SfxItemSet& rItemSet, sal_uInt16
bool ItemWrapperHelper::IsKnownItem( const SfxItemSet& rItemSet, sal_uInt16 nSlot )
{
- return rItemSet.GetItemState( GetWhichId( rItemSet, nSlot ), true ) != SfxItemState::UNKNOWN;
+ return rItemSet.GetItemState( GetWhichId( rItemSet, nSlot ) ) != SfxItemState::UNKNOWN;
}
const SfxPoolItem* ItemWrapperHelper::GetUniqueItem( const SfxItemSet& rItemSet, sal_uInt16 nSlot )
{
sal_uInt16 nWhich = GetWhichId( rItemSet, nSlot );
- return (rItemSet.GetItemState( nWhich, true ) >= SfxItemState::DEFAULT) ? rItemSet.GetItem( nWhich ) : 0;
+ return (rItemSet.GetItemState( nWhich ) >= SfxItemState::DEFAULT) ? rItemSet.GetItem( nWhich ) : 0;
}
const SfxPoolItem& ItemWrapperHelper::GetDefaultItem( const SfxItemSet& rItemSet, sal_uInt16 nSlot )
diff --git a/sfx2/source/dialog/mgetempl.cxx b/sfx2/source/dialog/mgetempl.cxx
index 16a06c479ebe..bbd0a5af11e6 100644
--- a/sfx2/source/dialog/mgetempl.cxx
+++ b/sfx2/source/dialog/mgetempl.cxx
@@ -355,7 +355,7 @@ IMPL_LINK_NOARG_TYPED( SfxManageStyleSheetPage, EditStyleSelectHdl_Impl, ListBox
IMPL_LINK_NOARG_TYPED( SfxManageStyleSheetPage, EditStyleHdl_Impl, Button*, void )
{
OUString aTemplName(m_pFollowLb->GetSelectEntry());
- if (Execute_Impl( SID_STYLE_EDIT, aTemplName, OUString(),(sal_uInt16)pStyle->GetFamily(), 0 ))
+ if (Execute_Impl( SID_STYLE_EDIT, aTemplName, OUString(),(sal_uInt16)pStyle->GetFamily() ))
{
}
}
@@ -373,7 +373,7 @@ IMPL_LINK_NOARG_TYPED( SfxManageStyleSheetPage, EditLinkStyleHdl_Impl, Button*,
{
OUString aTemplName(m_pBaseLb->GetSelectEntry());
if (aTemplName != SfxResId(STR_NONE))
- Execute_Impl( SID_STYLE_EDIT, aTemplName, OUString(),(sal_uInt16)pStyle->GetFamily(), 0 );
+ Execute_Impl( SID_STYLE_EDIT, aTemplName, OUString(),(sal_uInt16)pStyle->GetFamily() );
}
// Internal: Perform functions through the Dispatcher
diff --git a/sfx2/source/dialog/versdlg.cxx b/sfx2/source/dialog/versdlg.cxx
index 42ccd6bf2d93..2114dd1ec0fc 100644
--- a/sfx2/source/dialog/versdlg.cxx
+++ b/sfx2/source/dialog/versdlg.cxx
@@ -411,7 +411,7 @@ IMPL_LINK_TYPED( SfxVersionDialog, ButtonHdl_Impl, Button*, pButton, void )
const SfxPoolItem* aItems[2];
aItems[0] = &aComment;
aItems[1] = NULL;
- pViewFrame->GetBindings().ExecuteSynchron( SID_SAVEDOC, aItems, 0 );
+ pViewFrame->GetBindings().ExecuteSynchron( SID_SAVEDOC, aItems );
m_pVersionBox->SetUpdateMode( false );
m_pVersionBox->Clear();
Init_Impl();
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index cdd9a8abbade..dee6a7d43fe5 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -1469,7 +1469,7 @@ uno::Reference< embed::XStorage > SfxMedium::GetZipStorageToSign_Impl( bool bRea
// should it be possible at all?
if ( !bReadOnly && pImp->xStream.is() )
{
- pImp->m_xZipStorage = ::comphelper::OStorageHelper::GetStorageOfFormatFromStream( ZIP_STORAGE_FORMAT_STRING, pImp->xStream, embed::ElementModes::READWRITE );
+ pImp->m_xZipStorage = ::comphelper::OStorageHelper::GetStorageOfFormatFromStream( ZIP_STORAGE_FORMAT_STRING, pImp->xStream );
}
else if ( pImp->xInputStream.is() )
{
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index 190b733c150c..1c792420be4e 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -569,7 +569,7 @@ bool SfxObjectShell::ImportFromGeneratedStream_Impl(
try
{
uno::Reference< embed::XStorage > xStorage =
- ::comphelper::OStorageHelper::GetStorageFromStream( xStream, embed::ElementModes::READWRITE );
+ ::comphelper::OStorageHelper::GetStorageFromStream( xStream );
if ( !xStorage.is() )
throw uno::RuntimeException();
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index f6da7b797f4d..c23bfea02504 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -992,7 +992,7 @@ void SfxViewFrame::StateHistory_Impl( SfxItemSet &rSet )
if ( pShUndoMgr && pShUndoMgr->GetUndoActionCount() )
{
OUString aTmp(SvtResId(STR_UNDO).toString());
- aTmp+= pShUndoMgr->GetUndoActionComment(0);
+ aTmp+= pShUndoMgr->GetUndoActionComment();
rSet.Put( SfxStringItem( SID_UNDO, aTmp ) );
}
else
@@ -1001,7 +1001,7 @@ void SfxViewFrame::StateHistory_Impl( SfxItemSet &rSet )
if ( pShUndoMgr && pShUndoMgr->GetRedoActionCount() )
{
OUString aTmp(SvtResId(STR_REDO).toString());
- aTmp += pShUndoMgr->GetRedoActionComment(0);
+ aTmp += pShUndoMgr->GetRedoActionComment();
rSet.Put( SfxStringItem( SID_REDO, aTmp ) );
}
else