include/svtools/DocumentToGraphicRenderer.hxx | 2 +- include/svtools/brwbox.hxx | 2 +- include/svtools/ctrlbox.hxx | 18 +++++++++--------- include/svtools/editbrowsebox.hxx | 2 +- include/svtools/embedhlp.hxx | 2 +- include/svtools/grfmgr.hxx | 4 ++-- include/svtools/headbar.hxx | 4 ++-- include/svtools/htmlout.hxx | 12 ++++++------ include/svtools/hyperlabel.hxx | 2 +- include/svtools/imapobj.hxx | 2 +- include/svtools/inettbc.hxx | 6 +++--- include/svtools/ivctrl.hxx | 2 +- include/svtools/ruler.hxx | 6 +++--- include/svtools/stringtransfer.hxx | 4 ++-- include/svtools/svlbitm.hxx | 4 ++-- include/svtools/svtabbx.hxx | 2 +- include/svtools/tabbar.hxx | 6 +++--- include/svtools/toolbarmenu.hxx | 4 ++-- include/svtools/valueset.hxx | 8 ++++---- include/svx/gridctrl.hxx | 2 +- 20 files changed, 47 insertions(+), 47 deletions(-)
New commits: commit 5d22a47b4431c5718d989e738d2963d0b880d898 Author: Noel Grandin <n...@peralex.com> Date: Sun Sep 4 12:03:36 2016 +0200 loplugin:countusersofdefaultparams Change-Id: I38bfc88e85a9e5a024e982e555a0e0485a3010ad Reviewed-on: https://gerrit.libreoffice.org/28662 Reviewed-by: Noel Grandin <noelgran...@gmail.com> Tested-by: Noel Grandin <noelgran...@gmail.com> diff --git a/include/svtools/DocumentToGraphicRenderer.hxx b/include/svtools/DocumentToGraphicRenderer.hxx index 09de00e..e43e472 100644 --- a/include/svtools/DocumentToGraphicRenderer.hxx +++ b/include/svtools/DocumentToGraphicRenderer.hxx @@ -50,7 +50,7 @@ public: Size getDocumentSizeIn100mm( sal_Int32 aCurrentPage ); Graphic renderToGraphic(sal_Int32 aCurrentPage, Size aDocumentSizePixel, - Size aTargetSizePixel, Color aPageColor = COL_TRANSPARENT); + Size aTargetSizePixel, Color aPageColor); }; #endif diff --git a/include/svtools/brwbox.hxx b/include/svtools/brwbox.hxx index b7d72e9..f3bb8a3 100644 --- a/include/svtools/brwbox.hxx +++ b/include/svtools/brwbox.hxx @@ -531,7 +531,7 @@ public: Rectangle GetControlArea() const; bool ProcessKey( const KeyEvent& rEvt ); void Dispatch( sal_uInt16 nId ); - void SetMode( BrowserMode nMode = BrowserMode::NONE ); + void SetMode( BrowserMode nMode ); BrowserMode GetMode( ) const { return m_nCurrentMode; } void SetCursorColor(const Color& _rCol); diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx index 8796caf..a679e496 100644 --- a/include/svtools/ctrlbox.hxx +++ b/include/svtools/ctrlbox.hxx @@ -323,10 +323,10 @@ public: ColorDistFunc pColorDistFn = &sameDistColor); using ListBox::GetEntryPos; - sal_Int32 GetEntryPos( sal_uInt16 nStyle = css::table::BorderLineStyle::SOLID ) const; + sal_Int32 GetEntryPos( sal_uInt16 nStyle ) const; sal_uInt16 GetEntryStyle( sal_Int32 nPos ) const; - void SelectEntry( sal_uInt16 nStyle = css::table::BorderLineStyle::SOLID, bool bSelect = true ); + void SelectEntry( sal_uInt16 nStyle, bool bSelect = true ); sal_uInt16 GetSelectEntryStyle() const; inline void SetUnit( FieldUnit eNewUnit ) { eUnit = eNewUnit; } @@ -339,9 +339,9 @@ public: protected: inline const Color& GetPaintColor() const; - Color GetColorLine1( sal_Int32 nPos = 0 ); - Color GetColorLine2( sal_Int32 nPos = 0 ); - Color GetColorDist( sal_Int32 nPos = 0 ); + Color GetColorLine1( sal_Int32 nPos ); + Color GetColorLine2( sal_Int32 nPos ); + Color GetColorDist( sal_Int32 nPos ); private: LineListBox( const LineListBox& ) = delete; @@ -395,7 +395,7 @@ public: void Fill( const FontList* pList ); - void EnableWYSIWYG( bool bEnable = true ); + void EnableWYSIWYG( bool bEnable ); private: void InitFontMRUEntriesFile(); @@ -463,14 +463,14 @@ public: void Fill( const FontMetric* pFontMetric, const FontList* pList ); - void EnableRelativeMode( sal_uInt16 nMin = 50, sal_uInt16 nMax = 150, + void EnableRelativeMode( sal_uInt16 nMin, sal_uInt16 nMax = 150, sal_uInt16 nStep = 5 ); - void EnablePtRelativeMode( short nMin = -200, short nMax = 200, + void EnablePtRelativeMode( short nMin, short nMax = 200, short nStep = 10 ); bool IsRelativeMode() const { return bRelativeMode; } void SetRelative( bool bRelative ); bool IsRelative() const { return bRelative; } - void SetPtRelative( bool bPtRel = true ) + void SetPtRelative( bool bPtRel ) { bPtRelative = bPtRel; SetRelative( true ); } bool IsPtRelative() const { return bPtRelative; } diff --git a/include/svtools/editbrowsebox.hxx b/include/svtools/editbrowsebox.hxx index b46c124..e2f6998 100644 --- a/include/svtools/editbrowsebox.hxx +++ b/include/svtools/editbrowsebox.hxx @@ -571,7 +571,7 @@ namespace svt // inserting columns // if you don't set a width, this will be calculated automatically // if the id isn't set the smallest unused will do it ... - virtual sal_uInt16 AppendColumn(const OUString& rName, sal_uInt16 nWidth = 0, sal_uInt16 nPos = HEADERBAR_APPEND, sal_uInt16 nId = (sal_uInt16)-1); + virtual sal_uInt16 AppendColumn(const OUString& rName, sal_uInt16 nWidth, sal_uInt16 nPos = HEADERBAR_APPEND, sal_uInt16 nId = (sal_uInt16)-1); // called whenever (Shift)Tab or Enter is pressed. If true is returned, these keys // result in traveling to the next or to th previous cell diff --git a/include/svtools/embedhlp.hxx b/include/svtools/embedhlp.hxx index 70277a9..70d1674 100644 --- a/include/svtools/embedhlp.hxx +++ b/include/svtools/embedhlp.hxx @@ -96,7 +96,7 @@ public: // the original size of the object ( size of the icon for iconified object ) // no conversion is done if no target mode is provided - Size GetSize( MapMode* pTargetMapMode = nullptr ) const; + Size GetSize( MapMode* pTargetMapMode ) const; void SetGraphic( const Graphic& rGraphic, const OUString& rMediaType ); void SetGraphicStream( diff --git a/include/svtools/grfmgr.hxx b/include/svtools/grfmgr.hxx index 517aca5..80e03d0 100644 --- a/include/svtools/grfmgr.hxx +++ b/include/svtools/grfmgr.hxx @@ -348,7 +348,7 @@ public: OutputDevice* pOut, const Point& rPt, const Size& rSz, - const GraphicAttr* pAttr = nullptr, + const GraphicAttr* pAttr, GraphicManagerDrawFlags nFlags = GraphicManagerDrawFlags::STANDARD ) const; @@ -578,7 +578,7 @@ private: void SVT_DLLPRIVATE ImplRegisterObj( const GraphicObject& rObj, Graphic& rSubstitute, - const OString* pID = nullptr, + const OString* pID, const GraphicObject* pCopyObj = nullptr ); void SVT_DLLPRIVATE ImplUnregisterObj( const GraphicObject& rObj ); diff --git a/include/svtools/headbar.hxx b/include/svtools/headbar.hxx index 88e1579..b609a8a 100644 --- a/include/svtools/headbar.hxx +++ b/include/svtools/headbar.hxx @@ -296,8 +296,8 @@ public: void MoveItem( sal_uInt16 nItemId, sal_uInt16 nNewPos ); void Clear(); - void SetOffset( long nNewOffset = 0 ); - inline void SetDragSize( long nNewSize = 0 ) { mnDragSize = nNewSize; } + void SetOffset( long nNewOffset ); + inline void SetDragSize( long nNewSize ) { mnDragSize = nNewSize; } sal_uInt16 GetItemCount() const; sal_uInt16 GetItemPos( sal_uInt16 nItemId ) const; diff --git a/include/svtools/htmlout.hxx b/include/svtools/htmlout.hxx index 715f0ba..969d02c 100644 --- a/include/svtools/htmlout.hxx +++ b/include/svtools/htmlout.hxx @@ -54,7 +54,7 @@ struct SVT_DLLPUBLIC HTMLOutContext struct HTMLOutFuncs { SVT_DLLPUBLIC static OString ConvertStringToHTML( const OUString& sSrc, - rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, + rtl_TextEncoding eDestEnc, OUString *pNonConvertableChars = nullptr ); SVT_DLLPUBLIC static SvStream& Out_AsciiTag( SvStream&, const sal_Char* pStr, @@ -62,9 +62,9 @@ struct HTMLOutFuncs rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252); SVT_DLLPUBLIC static SvStream& Out_Char( SvStream&, sal_Unicode cChar, HTMLOutContext& rContext, - OUString *pNonConvertableChars = nullptr ); + OUString *pNonConvertableChars ); SVT_DLLPUBLIC static SvStream& Out_String( SvStream&, const OUString&, - rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, + rtl_TextEncoding eDestEnc, OUString *pNonConvertableChars = nullptr ); SVT_DLLPUBLIC static SvStream& Out_Hex( SvStream&, sal_uLong nHex, sal_uInt8 nLen, rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252 ); @@ -73,7 +73,7 @@ struct HTMLOutFuncs SVT_DLLPUBLIC static SvStream& Out_ImageMap( SvStream&, const OUString&, const ImageMap&, const OUString&, const HTMLOutEvent *pEventTable, bool bOutStarBasic, - const sal_Char *pDelim = nullptr, + const sal_Char *pDelim, const sal_Char *pIndentArea = nullptr, const sal_Char *pIndentMap = nullptr, rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, @@ -86,7 +86,7 @@ struct HTMLOutFuncs const OUString& rLanguage, ScriptType eScriptType, const OUString& rSrc, - const OUString *pSBLibrary = nullptr, + const OUString *pSBLibrary, const OUString *pSBModule = nullptr, rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, OUString *pNonConvertableChars = nullptr ); @@ -95,7 +95,7 @@ struct HTMLOutFuncs // by an entry that consists only of 0s SVT_DLLPUBLIC static SvStream& Out_Events( SvStream&, const SvxMacroTableDtor&, const HTMLOutEvent*, bool bOutStarBasic, - rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, + rtl_TextEncoding eDestEnc, OUString *pNonConvertableChars = nullptr ); // <TD SDVAL="..." SDNUM="..."> diff --git a/include/svtools/hyperlabel.hxx b/include/svtools/hyperlabel.hxx index 6e027c7..4fcb914 100644 --- a/include/svtools/hyperlabel.hxx +++ b/include/svtools/hyperlabel.hxx @@ -68,7 +68,7 @@ namespace svt void SetClickHdl( const Link<HyperLabel*,void>& rLink ) { maClickHdl = rLink; } - Size CalcMinimumSize( long nMaxWidth = 0 ) const; + Size CalcMinimumSize( long nMaxWidth ) const; private: using FixedText::CalcMinimumSize; diff --git a/include/svtools/imapobj.hxx b/include/svtools/imapobj.hxx index f604b86..54f81d4 100644 --- a/include/svtools/imapobj.hxx +++ b/include/svtools/imapobj.hxx @@ -111,7 +111,7 @@ public: void SetName( const OUString& rName ) { aName = rName; } bool IsActive() const { return bActive; } - void SetActive( bool bSetActive = true ) { bActive = bSetActive; } + void SetActive( bool bSetActive ) { bActive = bSetActive; } bool IsEqual( const IMapObject& rEqObj ); diff --git a/include/svtools/inettbc.hxx b/include/svtools/inettbc.hxx index 108c877..d46d420 100644 --- a/include/svtools/inettbc.hxx +++ b/include/svtools/inettbc.hxx @@ -66,8 +66,8 @@ public: const OUString& GetBaseURL() const { return aBaseURL; } void SetOpenHdl( const Link<SvtURLBox*,void>& rLink ) { aOpenHdl = rLink; } const Link<SvtURLBox*,void>& GetOpenHdl() const { return aOpenHdl; } - void SetOnlyDirectories( bool bDir = true ); - void SetNoURLSelection( bool bSet = true ); + void SetOnlyDirectories( bool bDir ); + void SetNoURLSelection( bool bSet ); INetProtocol GetSmartProtocol() const { return eSmartProtocol; } void SetSmartProtocol( INetProtocol eProt ); bool IsCtrlOpen() @@ -81,7 +81,7 @@ public: void SetFilter(const OUString& _sFilter); - inline void EnableAutocompletion( bool _bEnable = true ) + inline void EnableAutocompletion( bool _bEnable ) { bIsAutoCompleteEnabled = _bEnable; } void SetPlaceHolder( const OUString& sPlaceHolder ) { aPlaceHolder = sPlaceHolder; } diff --git a/include/svtools/ivctrl.hxx b/include/svtools/ivctrl.hxx index 3b9c75a9..91dc5af 100644 --- a/include/svtools/ivctrl.hxx +++ b/include/svtools/ivctrl.hxx @@ -283,7 +283,7 @@ public: SvxIconChoiceCtrlEntry* GetSelectedEntry() const; #ifdef DBG_UTIL - void SetEntryTextMode( SvxIconChoiceCtrlTextMode eMode, SvxIconChoiceCtrlEntry* pEntry = nullptr ); + void SetEntryTextMode( SvxIconChoiceCtrlTextMode eMode, SvxIconChoiceCtrlEntry* pEntry ); #endif Point GetPixelPos( const Point& rPosLogic ) const; diff --git a/include/svtools/ruler.hxx b/include/svtools/ruler.hxx index 60436bb..3371903 100644 --- a/include/svtools/ruler.hxx +++ b/include/svtools/ruler.hxx @@ -672,7 +672,7 @@ private: SVT_DLLPRIVATE void ImplDrawBorders(vcl::RenderContext& rRenderContext, long nMin, long nMax, long nVirTop, long nVirBottom); SVT_DLLPRIVATE void ImplDrawIndent(vcl::RenderContext& rRenderContext, - const tools::Polygon& rPoly, bool bIsHit = false); + const tools::Polygon& rPoly, bool bIsHit); SVT_DLLPRIVATE void ImplDrawIndents(vcl::RenderContext& rRenderContext, long nMin, long nMax, long nVirTop, long nVirBottom); SVT_DLLPRIVATE void ImplDrawTab(vcl::RenderContext& rRenderContext, const Point& rPos, sal_uInt16 nStyle); @@ -733,7 +733,7 @@ public: void Activate() override; void Deactivate() override; - void SetWinPos( long nOff = 0, long nWidth = 0 ); + void SetWinPos( long nOff, long nWidth = 0 ); long GetWinOffset() const { return mnWinOff; } void SetPagePos( long nOff = 0, long nWidth = 0 ); long GetPageOffset() const; @@ -750,7 +750,7 @@ public: void SetExtraType( RulerExtra eNewExtraType, sal_uInt16 nStyle = 0 ); bool StartDocDrag( const MouseEvent& rMEvt, - RulerType eDragType = RulerType::DontKnow ); + RulerType eDragType ); RulerType GetDragType() const { return meDragType; } long GetDragPos() const { return mnDragPos; } sal_uInt16 GetDragAryPos() const { return mnDragAryPos; } diff --git a/include/svtools/stringtransfer.hxx b/include/svtools/stringtransfer.hxx index 65a7bc1..44c1c70 100644 --- a/include/svtools/stringtransfer.hxx +++ b/include/svtools/stringtransfer.hxx @@ -54,12 +54,12 @@ namespace svt <p>Beware: In opposite to the old DragServer::CopyString, this method does not <em>add</em> the string to the clipboard, instead the old clipboard content is <em>replaced</em>!</p> */ - SVT_DLLPUBLIC static void CopyString( const OUString& _rContent, vcl::Window* _pWindow = nullptr ); + SVT_DLLPUBLIC static void CopyString( const OUString& _rContent, vcl::Window* _pWindow ); /** extracts a string from the system clipboard given @return <TRUE/> if the extraction was successful, i.e. if the clipboard contained a string content */ - SVT_DLLPUBLIC static bool PasteString( OUString& _rContent, vcl::Window* _pWindow = nullptr ); + SVT_DLLPUBLIC static bool PasteString( OUString& _rContent, vcl::Window* _pWindow ); /** starts dragging a simple string */ diff --git a/include/svtools/svlbitm.hxx b/include/svtools/svlbitm.hxx index f520f86..159ef35 100644 --- a/include/svtools/svlbitm.hxx +++ b/include/svtools/svlbitm.hxx @@ -68,7 +68,7 @@ private: std::vector<Image> aBmps; // indices s. constants BMP_ .... SVT_DLLPRIVATE void SetWidthAndHeight(); - SVT_DLLPRIVATE void InitData( bool _bRadioBtn, const Control* pControlForSettings = nullptr ); + SVT_DLLPRIVATE void InitData( bool _bRadioBtn, const Control* pControlForSettings ); public: // include creating default images (CheckBox or RadioButton) SvLBoxButtonData( const Control* pControlForSettings ); @@ -92,7 +92,7 @@ public: void SetImage(SvBmp nIndex, const Image& aImage) { aBmps[(int)nIndex] = aImage; } Image& GetImage(SvBmp nIndex) { return aBmps[(int)nIndex]; } - void SetDefaultImages( const Control* pControlForSettings = nullptr ); + void SetDefaultImages( const Control* pControlForSettings ); // set images according to the color scheme of the Control // pControlForSettings == NULL: settings are taken from Application bool HasDefaultImages() const; diff --git a/include/svtools/svtabbx.hxx b/include/svtools/svtabbx.hxx index 03b4a2a..1f6cadd 100644 --- a/include/svtools/svtabbx.hxx +++ b/include/svtools/svtabbx.hxx @@ -98,7 +98,7 @@ public: static OUString GetEntryText( SvTreeListEntry*, sal_uInt16 nCol ); OUString GetEntryText( sal_uLong nPos, sal_uInt16 nCol = 0xffff ) const; using SvTreeListBox::SetEntryText; - void SetEntryText(const OUString&, sal_uLong, sal_uInt16 nCol=0xffff); + void SetEntryText(const OUString&, sal_uLong, sal_uInt16 nCol); void SetEntryText(const OUString&, SvTreeListEntry*, sal_uInt16 nCol=0xffff); OUString GetCellText( sal_uLong nPos, sal_uInt16 nCol ) const; sal_uLong GetEntryPos( const OUString&, sal_uInt16 nCol = 0xffff ); diff --git a/include/svtools/tabbar.hxx b/include/svtools/tabbar.hxx index 74a3720..b11a9db 100644 --- a/include/svtools/tabbar.hxx +++ b/include/svtools/tabbar.hxx @@ -403,7 +403,7 @@ public: bool IsPageEnabled( sal_uInt16 nPageId ) const; - void SetPageBits( sal_uInt16 nPageId, TabBarPageBits nBits = 0 ); + void SetPageBits( sal_uInt16 nPageId, TabBarPageBits nBits ); TabBarPageBits GetPageBits( sal_uInt16 nPageId ) const; sal_uInt16 GetPageCount() const; @@ -420,7 +420,7 @@ public: void SetFirstPageId( sal_uInt16 nPageId ); void MakeVisible( sal_uInt16 nPageId ); - void SelectPage( sal_uInt16 nPageId, bool bSelect = true ); + void SelectPage( sal_uInt16 nPageId, bool bSelect ); sal_uInt16 GetSelectPageCount() const; bool IsPageSelected( sal_uInt16 nPageId ) const; @@ -440,7 +440,7 @@ public: @param bMirrored sal_True = the control will draw itself RTL in LTR GUI, and vice versa; sal_False = the control behaves according to the current direction of the GUI. */ - void SetMirrored(bool bMirrored = true); + void SetMirrored(bool bMirrored); /** Returns true, if the control is set to mirrored mode (see SetMirrored()). */ bool IsMirrored() const { return mbMirrored; } diff --git a/include/svtools/toolbarmenu.hxx b/include/svtools/toolbarmenu.hxx index ac38dbd..22f0ddf 100644 --- a/include/svtools/toolbarmenu.hxx +++ b/include/svtools/toolbarmenu.hxx @@ -72,9 +72,9 @@ public: /** creates an empty ValueSet that is initialized and can be inserted with appendEntry. */ VclPtr<ValueSet> createEmptyValueSetControl(); - void checkEntry( int nEntryId, bool bCheck = true ); + void checkEntry( int nEntryId, bool bCheck ); - void enableEntry( int nEntryId, bool bEnable = true ); + void enableEntry( int nEntryId, bool bEnable ); void setEntryText( int nEntryId, const OUString& rStr ); diff --git a/include/svtools/valueset.hxx b/include/svtools/valueset.hxx index 202e26d..fabd2d5 100644 --- a/include/svtools/valueset.hxx +++ b/include/svtools/valueset.hxx @@ -316,7 +316,7 @@ public: /// Insert an User Drawn item. void InsertItem(sal_uInt16 nItemId, size_t nPos = VALUESET_APPEND); /// Insert an User Drawn item with @rStr tooltip. - void InsertItem(sal_uInt16 nItemId, const OUString& rStr, size_t nPos = VALUESET_APPEND); + void InsertItem(sal_uInt16 nItemId, const OUString& rStr, size_t nPos); void RemoveItem(sal_uInt16 nItemId); void Clear(); @@ -326,7 +326,7 @@ public: sal_uInt16 GetItemId( size_t nPos ) const; sal_uInt16 GetItemId( const Point& rPos ) const; Rectangle GetItemRect( sal_uInt16 nItemId ) const; - void EnableFullItemMode( bool bFullMode = true ); + void EnableFullItemMode( bool bFullMode ); void SetColCount( sal_uInt16 nNewCols = 1 ); sal_uInt16 GetColCount() const @@ -338,8 +338,8 @@ public: { return mnUserVisLines; } - void SetItemWidth( long nItemWidth = 0 ); - void SetItemHeight( long nLineHeight = 0 ); + void SetItemWidth( long nItemWidth ); + void SetItemHeight( long nLineHeight ); Size GetLargestItemSize(); void RecalculateItemSizes(); diff --git a/include/svx/gridctrl.hxx b/include/svx/gridctrl.hxx index 23cc343..3aa5465 100644 --- a/include/svx/gridctrl.hxx +++ b/include/svx/gridctrl.hxx @@ -328,7 +328,7 @@ protected: virtual bool SaveModified() override; virtual bool IsModified() const override; - virtual sal_uInt16 AppendColumn(const OUString& rName, sal_uInt16 nWidth = 0, sal_uInt16 nPos = HEADERBAR_APPEND, sal_uInt16 nId = (sal_uInt16)-1) override; + virtual sal_uInt16 AppendColumn(const OUString& rName, sal_uInt16 nWidth, sal_uInt16 nPos = HEADERBAR_APPEND, sal_uInt16 nId = (sal_uInt16)-1) override; void RemoveColumn(sal_uInt16 nId); DbGridColumn* CreateColumn(sal_uInt16 nId) const; virtual void ColumnMoved(sal_uInt16 nId) override; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits