summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-07-27 14:25:48 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-07-29 07:07:13 +0000
commit27319418ed7601fa62993e39894bb8f8902a88d0 (patch)
treee3d7d8642a6896e3820be916fec1e306429eb3ea /svtools
parentfd586445a47d50ebfff67a7d5e4a329cf064cb92 (diff)
loplugin:countusersofdefaultparams in store..svtools
Change-Id: I15b4400bddc5a4d0e3de5dfffe18b7e493f97df6 Reviewed-on: https://gerrit.libreoffice.org/27580 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/inc/roadmap.hxx2
-rw-r--r--svtools/source/config/miscopt.cxx12
-rw-r--r--svtools/source/contnr/fileview.cxx4
-rw-r--r--svtools/source/contnr/imivctl.hxx14
-rw-r--r--svtools/source/contnr/imivctl1.cxx12
-rw-r--r--svtools/source/contnr/ivctrl.cxx6
-rw-r--r--svtools/source/contnr/treelistbox.cxx2
-rw-r--r--svtools/source/dialogs/roadmapwizard.cxx3
-rw-r--r--svtools/source/inc/iconviewimpl.hxx2
-rw-r--r--svtools/source/inc/svimpbox.hxx2
-rw-r--r--svtools/source/misc/langtab.cxx4
-rw-r--r--svtools/source/table/tablecontrol_impl.cxx4
-rw-r--r--svtools/source/uno/treecontrolpeer.cxx2
-rw-r--r--svtools/source/uno/treecontrolpeer.hxx2
14 files changed, 36 insertions, 35 deletions
diff --git a/svtools/inc/roadmap.hxx b/svtools/inc/roadmap.hxx
index 6b9c50355015..14d63ee2604f 100644
--- a/svtools/inc/roadmap.hxx
+++ b/svtools/inc/roadmap.hxx
@@ -69,7 +69,7 @@ public:
ItemIndex GetItemCount() const;
ItemId GetItemID( ItemIndex _nIndex ) const;
- void InsertRoadmapItem( ItemIndex Index, const OUString& RoadmapItem, ItemId _nUniqueId, bool _bEnabled = true );
+ void InsertRoadmapItem( ItemIndex Index, const OUString& RoadmapItem, ItemId _nUniqueId, bool _bEnabled );
void ReplaceRoadmapItem( ItemIndex Index, const OUString& RoadmapItem, ItemId _nUniqueId, bool _bEnabled );
void DeleteRoadmapItem( ItemIndex _nIndex );
diff --git a/svtools/source/config/miscopt.cxx b/svtools/source/config/miscopt.cxx
index 10a6fe9e8f51..63fe6a60685a 100644
--- a/svtools/source/config/miscopt.cxx
+++ b/svtools/source/config/miscopt.cxx
@@ -159,7 +159,7 @@ public:
static OUString GetIconTheme();
- enum SetModifiedFlag { SET_MODIFIED, DONT_SET_MODIFIED };
+ enum class SetModifiedFlag { SET, DONT_SET };
/** Set the icon theme
*
@@ -174,7 +174,7 @@ public:
* during initialization in the constructor.
*/
void
- SetIconTheme(const OUString &theme, SetModifiedFlag setModified = SET_MODIFIED );
+ SetIconTheme(const OUString &theme, SetModifiedFlag setModified );
bool IconThemeWasSetAutomatically()
{return m_bIconThemeWasSetAutomatically;}
@@ -340,7 +340,7 @@ SvtMiscOptions_Impl::SvtMiscOptions_Impl()
{
OUString aIconTheme;
if (seqValues[nProperty] >>= aIconTheme)
- SetIconTheme(aIconTheme, DONT_SET_MODIFIED);
+ SetIconTheme(aIconTheme, SetModifiedFlag::DONT_SET);
else
OSL_FAIL("Wrong type of \"Misc\\SymbolStyle\"!" );
@@ -463,7 +463,7 @@ void SvtMiscOptions_Impl::Load( const Sequence< OUString >& rPropertyNames )
case PROPERTYHANDLE_SYMBOLSTYLE : {
OUString aIconTheme;
if (seqValues[nProperty] >>= aIconTheme)
- SetIconTheme(aIconTheme, DONT_SET_MODIFIED);
+ SetIconTheme(aIconTheme, SetModifiedFlag::DONT_SET);
else
OSL_FAIL("Wrong type of \"Misc\\SymbolStyle\"!" );
}
@@ -546,7 +546,7 @@ SvtMiscOptions_Impl::SetIconTheme(const OUString &rName, SetModifiedFlag setModi
Application::MergeSystemSettings( aAllSettings );
Application::SetSettings(aAllSettings);
- if (setModified == SET_MODIFIED) {
+ if (setModified == SetModifiedFlag::SET) {
SetModified();
}
CallListeners();
@@ -784,7 +784,7 @@ OUString SvtMiscOptions::GetIconTheme() const
void SvtMiscOptions::SetIconTheme(const OUString& iconTheme)
{
- m_pImpl->SetIconTheme(iconTheme);
+ m_pImpl->SetIconTheme(iconTheme, SvtMiscOptions_Impl::SetModifiedFlag::SET);
}
bool SvtMiscOptions::DisableUICustomization() const
diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx
index edbc446b4e41..4f05be01106e 100644
--- a/svtools/source/contnr/fileview.cxx
+++ b/svtools/source/contnr/fileview.cxx
@@ -367,7 +367,7 @@ public:
FileViewResult GetFolderContent_Impl(
const FolderDescriptor& _rFolder,
const FileViewAsyncAction* pAsyncDescriptor,
- const css::uno::Sequence< OUString >& rBlackList = css::uno::Sequence< OUString >());
+ const css::uno::Sequence< OUString >& rBlackList );
void FilterFolderContent_Impl( const OUString &rFilter );
void CancelRunningAsyncAction();
@@ -1127,7 +1127,7 @@ bool SvtFileView::Initialize( const css::uno::Reference< css::ucb::XContent>& _x
mpImpl->Clear();
::ucbhelper::Content aContent(_xContent, mpImpl->mxCmdEnv, comphelper::getProcessComponentContext() );
- FileViewResult eResult = mpImpl->GetFolderContent_Impl( FolderDescriptor( aContent ), nullptr );
+ FileViewResult eResult = mpImpl->GetFolderContent_Impl( FolderDescriptor( aContent ), nullptr, css::uno::Sequence< OUString >() );
OSL_ENSURE( eResult != eStillRunning, "SvtFileView::Initialize: this was expected to be synchronous!" );
if ( eResult != eSuccess )
return false;
diff --git a/svtools/source/contnr/imivctl.hxx b/svtools/source/contnr/imivctl.hxx
index 0e0f09e0db6b..af0f2d936ccb 100644
--- a/svtools/source/contnr/imivctl.hxx
+++ b/svtools/source/contnr/imivctl.hxx
@@ -324,7 +324,7 @@ public:
~SvxIconChoiceCtrl_Impl();
bool SetChoiceWithCursor() { bool bOld = bChooseWithCursor; bChooseWithCursor = true; return bOld; }
- void Clear( bool bInCtor = false );
+ void Clear( bool bInCtor );
void SetStyle( WinBits nWinStyle );
WinBits GetStyle() const { return nWinBits; }
void InsertEntry( SvxIconChoiceCtrlEntry*, size_t nPos );
@@ -347,7 +347,7 @@ public:
SvxIconChoiceCtrlEntry* pNewCursor,
bool bMod1,
bool bShift,
- bool bPaintSync = false
+ bool bPaintSync
);
bool KeyInput( const KeyEvent& );
void Resize();
@@ -374,9 +374,9 @@ public:
void MakeEntryVisible( SvxIconChoiceCtrlEntry* pEntry, bool bBound = true );
void Arrange(
- bool bKeepPredecessors = false,
- long nSetMaxVirtWidth =0,
- long nSetMaxVirtHeight =0
+ bool bKeepPredecessors,
+ long nSetMaxVirtWidth,
+ long nSetMaxVirtHeight
);
Rectangle CalcFocusRect( SvxIconChoiceCtrlEntry* );
@@ -484,11 +484,11 @@ public:
void SetEntryHighlightFrame(
SvxIconChoiceCtrlEntry* pEntry,
- bool bKeepHighlightFlags = false
+ bool bKeepHighlightFlags
);
void DrawHighlightFrame(vcl::RenderContext& rRenderContext, const Rectangle& rBmpRect);
- void CallEventListeners( sal_uLong nEvent, void* pData = nullptr );
+ void CallEventListeners( sal_uLong nEvent, void* pData );
::svt::IAccessibleFactory& GetAccessibleFactory()
{
diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx
index ef8a25caf956..505090716bf4 100644
--- a/svtools/source/contnr/imivctl1.cxx
+++ b/svtools/source/contnr/imivctl1.cxx
@@ -164,7 +164,7 @@ SvxIconChoiceCtrl_Impl::~SvxIconChoiceCtrl_Impl()
{
pCurEditedEntry = nullptr;
pEdit.disposeAndClear();
- Clear();
+ Clear(false);
StopEditTimer();
CancelUserEvents();
delete pZOrderList;
@@ -924,7 +924,7 @@ bool SvxIconChoiceCtrl_Impl::MouseMove( const MouseEvent& rMEvt )
else if( nWinBits & WB_HIGHLIGHTFRAME )
{
SvxIconChoiceCtrlEntry* pEntry = GetEntry( aDocPos, true );
- SetEntryHighlightFrame( pEntry );
+ SetEntryHighlightFrame( pEntry, false );
}
else
return false;
@@ -992,7 +992,7 @@ bool SvxIconChoiceCtrl_Impl::KeyInput( const KeyEvent& rKEvt )
SvxIconChoiceCtrlEntry* pNewCursor = GetEntry( nPos );
SvxIconChoiceCtrlEntry* pOldCursor = pCursor;
if ( pNewCursor != pOldCursor )
- SetCursor_Impl( pOldCursor, pNewCursor, false, false );
+ SetCursor_Impl( pOldCursor, pNewCursor, false, false, false );
return true;
}
@@ -2657,7 +2657,7 @@ void SvxIconChoiceCtrl_Impl::ClearSelectedRectList()
IMPL_LINK_NOARG_TYPED(SvxIconChoiceCtrl_Impl, AutoArrangeHdl, Idle *, void)
{
aAutoArrangeIdle.Stop();
- Arrange( IsAutoArrange() );
+ Arrange( IsAutoArrange(), 0, 0 );
}
IMPL_LINK_NOARG_TYPED(SvxIconChoiceCtrl_Impl, VisRectChangedHdl, Idle *, void)
@@ -2777,7 +2777,7 @@ void SvxIconChoiceCtrl_Impl::SetEntryTextMode( SvxIconChoiceCtrlTextMode eMode,
if( eTextMode == IcnShowTextDontKnow )
eTextMode = IcnShowTextShort;
eTextMode = eMode;
- Arrange( true );
+ Arrange( true, 0, 0 );
}
}
else
@@ -3420,7 +3420,7 @@ void SvxIconChoiceCtrl_Impl::SetColumn( sal_uInt16 nIndex, const SvxIconChoiceCt
nGridDX = pInfo->GetWidth();
if( GetUpdateMode() )
- Arrange( IsAutoArrange() );
+ Arrange( IsAutoArrange(), 0, 0 );
}
const SvxIconChoiceCtrlColumnInfo* SvxIconChoiceCtrl_Impl::GetColumn( sal_uInt16 nIndex ) const
diff --git a/svtools/source/contnr/ivctrl.cxx b/svtools/source/contnr/ivctrl.cxx
index 5b48497757f7..7c35e4a12418 100644
--- a/svtools/source/contnr/ivctrl.cxx
+++ b/svtools/source/contnr/ivctrl.cxx
@@ -90,7 +90,7 @@ void SvtIconChoiceCtrl::dispose()
{
if (_pImpl)
{
- _pImpl->CallEventListeners( VCLEVENT_OBJECT_DYING );
+ _pImpl->CallEventListeners( VCLEVENT_OBJECT_DYING, nullptr );
_pImpl.reset();
}
Control::dispose();
@@ -152,7 +152,7 @@ void SvtIconChoiceCtrl::ArrangeIcons()
aFullSize.setWidth ( aFullSize.getWidth()+aEntryRect.GetWidth() );
}
- _pImpl->Arrange ( false, aFullSize.getWidth() );
+ _pImpl->Arrange ( false, aFullSize.getWidth(), 0 );
}
else if ( GetStyle() & WB_ALIGN_LEFT )
{
@@ -171,7 +171,7 @@ void SvtIconChoiceCtrl::ArrangeIcons()
}
else
{
- _pImpl->Arrange();
+ _pImpl->Arrange(false, 0, 0);
}
_pImpl->Arrange( false, 0, 1000 );
}
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index 028f9a23d50f..1dda5b529bf7 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -3306,7 +3306,7 @@ void SvTreeListBox::SetAlternatingRowColors( bool bEnable )
pEntry->SetBackColor( GetBackground().GetColor() );
mbAlternatingRowColors = bEnable;
- pImpl->UpdateAll();
+ pImpl->UpdateAll(true);
}
SvLBoxItem* SvTreeListBox::GetItem(SvTreeListEntry* pEntry,long nX,SvLBoxTab** ppTab)
diff --git a/svtools/source/dialogs/roadmapwizard.cxx b/svtools/source/dialogs/roadmapwizard.cxx
index 4fa72e815ad9..24cba255f631 100644
--- a/svtools/source/dialogs/roadmapwizard.cxx
+++ b/svtools/source/dialogs/roadmapwizard.cxx
@@ -321,7 +321,8 @@ namespace svt
m_pImpl->pRoadmap->InsertRoadmapItem(
nItemIndex,
getStateDisplayName( nState ),
- nState
+ nState,
+ true
);
}
diff --git a/svtools/source/inc/iconviewimpl.hxx b/svtools/source/inc/iconviewimpl.hxx
index 2163afc8685e..5b6a782cf20e 100644
--- a/svtools/source/inc/iconviewimpl.hxx
+++ b/svtools/source/inc/iconviewimpl.hxx
@@ -45,7 +45,7 @@ public:
// returns 0 if position is just past the last entry
SvTreeListEntry* GetEntry( const Point& rPoint ) const SAL_OVERRIDE;
- void UpdateAll( bool bInvalidateCompleteView = true ) SAL_OVERRIDE;
+ void UpdateAll( bool bInvalidateCompleteView ) SAL_OVERRIDE;
bool KeyInput( const KeyEvent& ) SAL_OVERRIDE;
diff --git a/svtools/source/inc/svimpbox.hxx b/svtools/source/inc/svimpbox.hxx
index cca5fc977971..5c1814276572 100644
--- a/svtools/source/inc/svimpbox.hxx
+++ b/svtools/source/inc/svimpbox.hxx
@@ -273,7 +273,7 @@ public:
void Resize();
void GetFocus();
void LoseFocus();
- virtual void UpdateAll( bool bInvalidateCompleteView= true );
+ virtual void UpdateAll( bool bInvalidateCompleteView );
void SetEntryHeight( short nHeight );
void InvalidateEntry( SvTreeListEntry* );
virtual void RecalcFocusRect();
diff --git a/svtools/source/misc/langtab.cxx b/svtools/source/misc/langtab.cxx
index 6b35a0d1953f..6e4ba6cc58d2 100644
--- a/svtools/source/misc/langtab.cxx
+++ b/svtools/source/misc/langtab.cxx
@@ -40,7 +40,7 @@ public:
virtual ~SvtLanguageTableImpl();
bool HasType( const LanguageType eType ) const;
- const OUString GetString( const LanguageType eType, bool bUserInterfaceSelection = false ) const;
+ const OUString GetString( const LanguageType eType, bool bUserInterfaceSelection ) const;
LanguageType GetType( const OUString& rStr ) const;
sal_uInt32 GetEntryCount() const;
LanguageType GetTypeAtIndex( sal_uInt32 nIndex ) const;
@@ -174,7 +174,7 @@ const OUString SvtLanguageTableImpl::GetString( const LanguageType eType, bool b
OUString SvtLanguageTable::GetLanguageString( const LanguageType eType )
{
- return theLanguageTable::get().GetString( eType );
+ return theLanguageTable::get().GetString( eType, false );
}
OUString SvtLanguageTable::GetLanguageString( const LanguageType eType, bool bUserInterfaceSelection )
diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx
index f87c0f168413..08a4d2927354 100644
--- a/svtools/source/table/tablecontrol_impl.cxx
+++ b/svtools/source/table/tablecontrol_impl.cxx
@@ -664,7 +664,7 @@ namespace svt { namespace table
for the given row height. Partially fitting rows are counted, too, if the
respective parameter says so.
*/
- TableSize lcl_getRowsFittingInto( long _nOverallHeight, long _nRowHeightPixel, bool _bAcceptPartialRow = false )
+ TableSize lcl_getRowsFittingInto( long _nOverallHeight, long _nRowHeightPixel, bool _bAcceptPartialRow )
{
return _bAcceptPartialRow
? ( _nOverallHeight + ( _nRowHeightPixel - 1 ) ) / _nRowHeightPixel
@@ -1094,7 +1094,7 @@ namespace svt { namespace table
m_rAntiImpl,
m_pVScroll,
i_verticalScrollbar,
- lcl_getRowsFittingInto( i_dataCellPlayground.GetHeight(), m_nRowHeightPixel ),
+ lcl_getRowsFittingInto( i_dataCellPlayground.GetHeight(), m_nRowHeightPixel, false ),
// visible units
m_nTopRow, // current position
1, // line size
diff --git a/svtools/source/uno/treecontrolpeer.cxx b/svtools/source/uno/treecontrolpeer.cxx
index 4ba1ab1c047f..bf334fac8993 100644
--- a/svtools/source/uno/treecontrolpeer.cxx
+++ b/svtools/source/uno/treecontrolpeer.cxx
@@ -408,7 +408,7 @@ void TreeControlPeer::addNode( UnoTreeListBoxImpl& rTree, const Reference< XTree
{
if( xNode.is() )
{
- UnoTreeListEntry* pEntry = createEntry( xNode, pParentEntry );
+ UnoTreeListEntry* pEntry = createEntry( xNode, pParentEntry, TREELIST_APPEND );
const sal_Int32 nChildCount = xNode->getChildCount();
for( sal_Int32 nChild = 0; nChild < nChildCount; nChild++ )
addNode( rTree, xNode->getChildAt( nChild ), pEntry );
diff --git a/svtools/source/uno/treecontrolpeer.hxx b/svtools/source/uno/treecontrolpeer.hxx
index 545b81398741..8bb49020c4d7 100644
--- a/svtools/source/uno/treecontrolpeer.hxx
+++ b/svtools/source/uno/treecontrolpeer.hxx
@@ -123,7 +123,7 @@ private:
void fillTree( UnoTreeListBoxImpl& rTree, const css::uno::Reference< css::awt::tree::XTreeDataModel >& xDataModel );
void addNode( UnoTreeListBoxImpl& rTree, const css::uno::Reference< css::awt::tree::XTreeNode >& xNode, UnoTreeListEntry* pParentEntry );
- UnoTreeListEntry* createEntry( const css::uno::Reference< css::awt::tree::XTreeNode >& xNode, UnoTreeListEntry* pParent, sal_uLong nPos = TREELIST_APPEND );
+ UnoTreeListEntry* createEntry( const css::uno::Reference< css::awt::tree::XTreeNode >& xNode, UnoTreeListEntry* pParent, sal_uLong nPos );
void updateEntry( UnoTreeListEntry* pEntry );
void updateTree( const css::awt::tree::TreeDataModelEvent& rEvent );