summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-30 15:34:35 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-08-31 11:44:36 +0000
commit6527b4073c72d3fdf2307a58a06023fe28fd9960 (patch)
tree9a6637dd50d6b86ce42c616cab2c5be2c12fdf46 /include/vcl
parent127a34ef2cf9fe0ac13a273c12c6d45ef57eaf49 (diff)
loplugin:countusersofdefaultparams
Change-Id: I697b9081424acdc61107709392baa8af8ce29028 Reviewed-on: https://gerrit.libreoffice.org/28497 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/animate.hxx4
-rw-r--r--include/vcl/bitmap.hxx12
-rw-r--r--include/vcl/bitmapex.hxx8
-rw-r--r--include/vcl/btndlg.hxx2
-rw-r--r--include/vcl/button.hxx2
-rw-r--r--include/vcl/combobox.hxx2
-rw-r--r--include/vcl/decoview.hxx2
-rw-r--r--include/vcl/dialog.hxx2
-rw-r--r--include/vcl/dockwin.hxx6
-rw-r--r--include/vcl/edit.hxx2
-rw-r--r--include/vcl/embeddedfontshelper.hxx2
-rw-r--r--include/vcl/floatwin.hxx4
-rw-r--r--include/vcl/fontcharmap.hxx2
-rw-r--r--include/vcl/gdimtf.hxx2
-rw-r--r--include/vcl/graph.hxx2
-rw-r--r--include/vcl/graphicfilter.hxx12
-rw-r--r--include/vcl/help.hxx4
-rw-r--r--include/vcl/implimagetree.hxx2
-rw-r--r--include/vcl/lstbox.hxx2
-rw-r--r--include/vcl/menu.hxx4
-rw-r--r--include/vcl/opengl/OpenGLHelper.hxx2
-rw-r--r--include/vcl/outdev.hxx22
-rw-r--r--include/vcl/pdfextoutdevdata.hxx4
-rw-r--r--include/vcl/pdfwriter.hxx22
-rw-r--r--include/vcl/print.hxx10
-rw-r--r--include/vcl/printerinfomanager.hxx2
-rw-r--r--include/vcl/slider.hxx2
-rw-r--r--include/vcl/splitwin.hxx8
-rw-r--r--include/vcl/syschild.hxx2
-rw-r--r--include/vcl/syswin.hxx2
-rw-r--r--include/vcl/tabctrl.hxx2
-rw-r--r--include/vcl/taskpanelist.hxx2
-rw-r--r--include/vcl/texteng.hxx4
-rw-r--r--include/vcl/textview.hxx2
-rw-r--r--include/vcl/toolbox.hxx12
-rw-r--r--include/vcl/window.hxx11
-rw-r--r--include/vcl/wmf.hxx4
-rw-r--r--include/vcl/wrkwin.hxx2
38 files changed, 96 insertions, 97 deletions
diff --git a/include/vcl/animate.hxx b/include/vcl/animate.hxx
index a2a0fee6b79f..f240af792ea7 100644
--- a/include/vcl/animate.hxx
+++ b/include/vcl/animate.hxx
@@ -101,7 +101,7 @@ public:
OutputDevice* pOutDev,
const Point& rDestPt,
const Size& rDestSz,
- long nExtraData = 0,
+ long nExtraData,
OutputDevice* pFirstFrameOutDev = nullptr);
void Stop( OutputDevice* pOutDev = nullptr, long nExtraData = 0 );
@@ -142,7 +142,7 @@ public:
bool Invert();
bool Mirror( BmpMirrorFlags nMirrorFlags );
bool Adjust(
- short nLuminancePercent = 0,
+ short nLuminancePercent,
short nContrastPercent = 0,
short nChannelRPercent = 0,
short nChannelGPercent = 0,
diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx
index 99113b81d0ef..f342650c0c9d 100644
--- a/include/vcl/bitmap.hxx
+++ b/include/vcl/bitmap.hxx
@@ -389,7 +389,7 @@ public:
bool CopyPixel_AlphaOptimized(
const Rectangle& rRectDst,
const Rectangle& rRectSrc,
- const Bitmap* pBmpSrc = nullptr );
+ const Bitmap* pBmpSrc );
/** Perform boolean operations with another bitmap
@@ -616,7 +616,7 @@ public:
*/
bool Vectorize(
tools::PolyPolygon& rPolyPoly,
- BmpVectorizeFlags nFlags = BmpVectorizeFlags::Outer );
+ BmpVectorizeFlags nFlags );
/** Convert the bitmap to a meta file
@@ -641,7 +641,7 @@ public:
*/
bool Vectorize(
GDIMetaFile& rMtf,
- sal_uInt8 cReduce = 0,
+ sal_uInt8 cReduce,
BmpVectorizeFlags nFlags = BmpVectorizeFlags::Inner,
const Link<long,void>* pProgress = nullptr );
@@ -676,7 +676,7 @@ public:
@return true, if the operation was completed successfully.
*/
bool Adjust(
- short nLuminancePercent = 0,
+ short nLuminancePercent,
short nContrastPercent = 0,
short nChannelRPercent = 0,
short nChannelGPercent = 0,
@@ -747,8 +747,8 @@ public:
SAL_DLLPRIVATE bool ImplMosaic( const BmpFilterParam* pFilterParam );
SAL_DLLPRIVATE bool ImplPopArt();
- SAL_DLLPRIVATE bool ImplSeparableBlurFilter( const double aRadius = 0.7 );
- SAL_DLLPRIVATE bool ImplSeparableUnsharpenFilter( const double aRadius = 0.7 );
+ SAL_DLLPRIVATE bool ImplSeparableBlurFilter( const double aRadius );
+ SAL_DLLPRIVATE bool ImplSeparableUnsharpenFilter( const double aRadius );
SAL_DLLPRIVATE bool ImplDuotoneFilter( const sal_uLong nColorOne, sal_uLong nColorTwo );
SAL_DLLPRIVATE void ImplBlurContributions(
const int aSize,
diff --git a/include/vcl/bitmapex.hxx b/include/vcl/bitmapex.hxx
index 6b45883c6a1c..193795e35c5a 100644
--- a/include/vcl/bitmapex.hxx
+++ b/include/vcl/bitmapex.hxx
@@ -184,7 +184,7 @@ public:
bool CopyPixel(
const Rectangle& rRectDst,
const Rectangle& rRectSrc,
- const BitmapEx* pBmpExSrc = nullptr );
+ const BitmapEx* pBmpExSrc );
/** Fill the entire bitmap with the given color
@@ -329,7 +329,7 @@ public:
@return true, if the operation was completed successfully.
*/
bool Adjust(
- short nLuminancePercent = 0,
+ short nLuminancePercent,
short nContrastPercent = 0,
short nChannelRPercent = 0,
short nChannelGPercent = 0,
@@ -386,7 +386,7 @@ public:
double fWidth,
double fHeight,
const basegfx::B2DHomMatrix& rTransformation,
- bool bSmooth = true) const;
+ bool bSmooth) const;
/** Create transformed Bitmap
@@ -412,7 +412,7 @@ public:
BitmapEx getTransformed(
const basegfx::B2DHomMatrix& rTransformation,
const basegfx::B2DRange& rVisibleRange,
- double fMaximumArea = 500000.0,
+ double fMaximumArea,
bool bSmooth = true) const;
/** Create ColorStack-modified version of this BitmapEx
diff --git a/include/vcl/btndlg.hxx b/include/vcl/btndlg.hxx
index a414c8949de7..1cb5a5071715 100644
--- a/include/vcl/btndlg.hxx
+++ b/include/vcl/btndlg.hxx
@@ -73,7 +73,7 @@ public:
void SetButtonText( sal_uInt16 nId, const OUString& rText );
void SetButtonHelpText( sal_uInt16 nId, const OUString& rText );
- void SetFocusButton( sal_uInt16 nId = BUTTONDIALOG_BUTTON_NOTFOUND ) { mnFocusButtonId = nId; }
+ void SetFocusButton( sal_uInt16 nId ) { mnFocusButtonId = nId; }
protected:
ButtonDialog( WindowType nType );
diff --git a/include/vcl/button.hxx b/include/vcl/button.hxx
index 4ed263c5b564..ac589ad35bad 100644
--- a/include/vcl/button.hxx
+++ b/include/vcl/button.hxx
@@ -345,7 +345,7 @@ public:
bool IsStateChanged() const { return mbStateChanged; }
- void EnableRadioCheck( bool bRadioCheck = true ) { mbRadioCheck = bRadioCheck; }
+ void EnableRadioCheck( bool bRadioCheck ) { mbRadioCheck = bRadioCheck; }
bool IsRadioCheckEnabled() const { return mbRadioCheck; }
bool SetModeRadioImage( const Image& rImage );
diff --git a/include/vcl/combobox.hxx b/include/vcl/combobox.hxx
index fd568f635146..684c273f73bd 100644
--- a/include/vcl/combobox.hxx
+++ b/include/vcl/combobox.hxx
@@ -117,7 +117,7 @@ public:
void DrawEntry( const UserDrawEvent& rEvt, bool bDrawImage, bool bDrawText, bool bDrawTextAtImagePos = false );
void SetBorderStyle( WindowBorderStyle nBorderStyle );
- void SetSeparatorPos( sal_Int32 n = COMBOBOX_ENTRY_NOTFOUND );
+ void SetSeparatorPos( sal_Int32 n );
void EnableAutocomplete( bool bEnable, bool bMatchCase = false );
bool IsAutocompleteEnabled() const;
diff --git a/include/vcl/decoview.hxx b/include/vcl/decoview.hxx
index ac640ef35e0d..e7aa4a0643c9 100644
--- a/include/vcl/decoview.hxx
+++ b/include/vcl/decoview.hxx
@@ -111,7 +111,7 @@ public:
const Color& rLeftTopColor,
const Color& rRightBottomColor );
void DrawHighlightFrame( const Rectangle& rRect,
- DrawHighlightFrameStyle nStyle = DrawHighlightFrameStyle::Out );
+ DrawHighlightFrameStyle nStyle );
Rectangle DrawFrame( const Rectangle& rRect, DrawFrameStyle nStyle = DrawFrameStyle::Out, DrawFrameFlags nFlags = DrawFrameFlags::NONE );
Rectangle DrawButton( const Rectangle& rRect, DrawButtonFlags nStyle );
void DrawSeparator( const Point& rStart, const Point& rStop, bool bVertical = true );
diff --git a/include/vcl/dialog.hxx b/include/vcl/dialog.hxx
index 6946d6487b75..bd965b1adb81 100644
--- a/include/vcl/dialog.hxx
+++ b/include/vcl/dialog.hxx
@@ -123,7 +123,7 @@ public:
void EndDialog( long nResult = 0 );
- static void EndAllDialogs( vcl::Window* pParent=nullptr );
+ static void EndAllDialogs( vcl::Window* pParent );
void GetDrawWindowBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
sal_Int32& rRightBorder, sal_Int32& rBottomBorder ) const;
diff --git a/include/vcl/dockwin.hxx b/include/vcl/dockwin.hxx
index c5e9d3232e37..ba56bffe1da8 100644
--- a/include/vcl/dockwin.hxx
+++ b/include/vcl/dockwin.hxx
@@ -141,7 +141,7 @@ public:
void Resizing( Size& rSize );
void Tracking( const TrackingEvent& rTEvt );
- void ShowTitleButton( TitleButton nButton, bool bVisible = true );
+ void ShowTitleButton( TitleButton nButton, bool bVisible );
void SetMinOutputSizePixel( const Size& rSize );
@@ -159,7 +159,7 @@ public:
void setPosSizePixel( long nX, long nY,
long nWidth, long nHeight,
- PosSizeFlags nFlags = PosSizeFlags::All );
+ PosSizeFlags nFlags );
Point GetPosPixel() const;
Size GetSizePixel() const;
};
@@ -196,7 +196,7 @@ public:
// be availbale from the toolkit
void SetPosSizePixel( vcl::Window *pWin, long nX, long nY,
long nWidth, long nHeight,
- PosSizeFlags nFlags = PosSizeFlags::All );
+ PosSizeFlags nFlags );
Rectangle GetPosSizePixel( const vcl::Window *pWin );
};
diff --git a/include/vcl/edit.hxx b/include/vcl/edit.hxx
index 28c29af61c9e..be0515a10cab 100644
--- a/include/vcl/edit.hxx
+++ b/include/vcl/edit.hxx
@@ -106,7 +106,7 @@ private:
SAL_DLLPRIVATE void ImplRepaint(vcl::RenderContext& rRenderContext, const Rectangle& rRectangle);
SAL_DLLPRIVATE void ImplInvalidateOrRepaint();
SAL_DLLPRIVATE void ImplDelete( const Selection& rSelection, sal_uInt8 nDirection, sal_uInt8 nMode );
- SAL_DLLPRIVATE void ImplSetText( const OUString& rStr, const Selection* pNewSelection = nullptr );
+ SAL_DLLPRIVATE void ImplSetText( const OUString& rStr, const Selection* pNewSelection );
SAL_DLLPRIVATE void ImplInsertText( const OUString& rStr, const Selection* pNewSelection = nullptr, bool bIsUserInput = false );
SAL_DLLPRIVATE OUString ImplGetValidString( const OUString& rString ) const;
SAL_DLLPRIVATE void ImplClearBackground(vcl::RenderContext& rRenderContext, const Rectangle& rRectangle, long nXStart, long nXEnd);
diff --git a/include/vcl/embeddedfontshelper.hxx b/include/vcl/embeddedfontshelper.hxx
index 7361195c4dce..057b340ecd5a 100644
--- a/include/vcl/embeddedfontshelper.hxx
+++ b/include/vcl/embeddedfontshelper.hxx
@@ -48,7 +48,7 @@ public:
*/
static bool addEmbeddedFont( const css::uno::Reference< css::io::XInputStream >& stream,
const OUString& fontName, const char* extra,
- std::vector< unsigned char > key = std::vector< unsigned char >(), bool eot = false);
+ std::vector< unsigned char > key, bool eot = false);
/**
Returns an URL for a file where to store contents of a given temporary font.
diff --git a/include/vcl/floatwin.hxx b/include/vcl/floatwin.hxx
index 38f1801e0694..63b2a78a4468 100644
--- a/include/vcl/floatwin.hxx
+++ b/include/vcl/floatwin.hxx
@@ -126,7 +126,7 @@ public:
sal_uInt16& rArrangeIndex );
static Point ImplConvertToAbsPos(vcl::Window* pReference, const Point& rPos);
static Rectangle ImplConvertToAbsPos(vcl::Window* pReference, const Rectangle& rRect);
- SAL_DLLPRIVATE void ImplEndPopupMode( FloatWinPopupEndFlags nFlags = FloatWinPopupEndFlags::NONE, const VclPtr<vcl::Window>& xFocusId = nullptr );
+ SAL_DLLPRIVATE void ImplEndPopupMode( FloatWinPopupEndFlags nFlags, const VclPtr<vcl::Window>& xFocusId = nullptr );
SAL_DLLPRIVATE Rectangle& ImplGetItemEdgeClipRect();
SAL_DLLPRIVATE bool ImplIsInPrivatePopupMode() const { return mbInPopupMode; }
virtual void doDeferredInit(WinBits nBits) override;
@@ -147,7 +147,7 @@ public:
void SetTitleType( FloatWinTitleType nTitle );
FloatWinTitleType GetTitleType() const { return mnTitle; }
- void StartPopupMode( const Rectangle& rRect, FloatWinPopupFlags nFlags = FloatWinPopupFlags::NONE );
+ void StartPopupMode( const Rectangle& rRect, FloatWinPopupFlags nFlags );
void StartPopupMode( ToolBox* pBox, FloatWinPopupFlags nFlags = FloatWinPopupFlags::NONE );
void EndPopupMode( FloatWinPopupEndFlags nFlags = FloatWinPopupEndFlags::NONE );
void AddPopupModeWindow( vcl::Window* pWindow );
diff --git a/include/vcl/fontcharmap.hxx b/include/vcl/fontcharmap.hxx
index c70b2e0c7cd9..a690973d8c31 100644
--- a/include/vcl/fontcharmap.hxx
+++ b/include/vcl/fontcharmap.hxx
@@ -47,7 +47,7 @@ public:
@returns the default font character map.
*/
- static FontCharMapPtr GetDefaultMap( bool bSymbols=false );
+ static FontCharMapPtr GetDefaultMap( bool bSymbols );
/** Determines if the font character map is the "default". The default map
includes all codepoints in the Unicode BMP range, including surrogates.
diff --git a/include/vcl/gdimtf.hxx b/include/vcl/gdimtf.hxx
index 06826326ff49..5e1567b84dee 100644
--- a/include/vcl/gdimtf.hxx
+++ b/include/vcl/gdimtf.hxx
@@ -129,7 +129,7 @@ public:
*/
Rectangle GetBoundRect( OutputDevice& i_rReference, Rectangle* pHairline = nullptr ) const;
- void Adjust( short nLuminancePercent = 0, short nContrastPercent = 0,
+ void Adjust( short nLuminancePercent, short nContrastPercent = 0,
short nChannelRPercent = 0, short nChannelGPercent = 0,
short nChannelBPercent = 0, double fGamma = 1.0,
bool bInvert = false, bool msoBrightness = false );
diff --git a/include/vcl/graph.hxx b/include/vcl/graph.hxx
index b6d719b1e3de..4bb1aa024a58 100644
--- a/include/vcl/graph.hxx
+++ b/include/vcl/graph.hxx
@@ -180,7 +180,7 @@ public:
const Size& rDestSize,
long nExtraData = 0L,
OutputDevice* pFirstFrameOutDev = nullptr );
- void StopAnimation( OutputDevice* pOutputDevice = nullptr,
+ void StopAnimation( OutputDevice* pOutputDevice,
long nExtraData = 0L );
void SetAnimationNotifyHdl( const Link<Animation*,void>& rLink );
diff --git a/include/vcl/graphicfilter.hxx b/include/vcl/graphicfilter.hxx
index ff8353c30146..1853212a17d0 100644
--- a/include/vcl/graphicfilter.hxx
+++ b/include/vcl/graphicfilter.hxx
@@ -259,7 +259,7 @@ public:
OUString GetImportFormatMediaType( sal_uInt16 nFormat );
#endif
OUString GetImportFormatShortName( sal_uInt16 nFormat );
- OUString GetImportWildcard( sal_uInt16 nFormat, sal_Int32 nEntry = 0 );
+ OUString GetImportWildcard( sal_uInt16 nFormat, sal_Int32 nEntry );
sal_uInt16 GetExportFormatCount();
sal_uInt16 GetExportFormatNumber( const OUString& rFormatName );
@@ -274,14 +274,14 @@ public:
bool IsExportPixelFormat( sal_uInt16 nFormat );
sal_uInt16 ExportGraphic( const Graphic& rGraphic, const INetURLObject& rPath,
- sal_uInt16 nFormat = GRFILTER_FORMAT_DONTKNOW,
+ sal_uInt16 nFormat,
const css::uno::Sequence< css::beans::PropertyValue >* pFilterData = nullptr );
sal_uInt16 ExportGraphic( const Graphic& rGraphic, const OUString& rPath,
- SvStream& rOStm, sal_uInt16 nFormat = GRFILTER_FORMAT_DONTKNOW,
+ SvStream& rOStm, sal_uInt16 nFormat,
const css::uno::Sequence< css::beans::PropertyValue >* pFilterData = nullptr );
sal_uInt16 CanImportGraphic( const INetURLObject& rPath,
- sal_uInt16 nFormat = GRFILTER_FORMAT_DONTKNOW,
+ sal_uInt16 nFormat,
sal_uInt16 * pDeterminedFormat = nullptr);
sal_uInt16 ImportGraphic( Graphic& rGraphic, const INetURLObject& rPath,
@@ -289,7 +289,7 @@ public:
sal_uInt16 * pDeterminedFormat = nullptr, GraphicFilterImportFlags nImportFlags = GraphicFilterImportFlags::NONE );
sal_uInt16 CanImportGraphic( const OUString& rPath, SvStream& rStream,
- sal_uInt16 nFormat = GRFILTER_FORMAT_DONTKNOW,
+ sal_uInt16 nFormat,
sal_uInt16 * pDeterminedFormat = nullptr);
sal_uInt16 ImportGraphic( Graphic& rGraphic, const OUString& rPath,
@@ -315,7 +315,7 @@ public:
GraphicFilter* pFilter = nullptr,
sal_uInt16* pDeterminedFormat = nullptr );
- sal_uInt16 compressAsPNG(const Graphic& rGraphic, SvStream& rOutputStream, sal_uInt32 nCompression = 5);
+ sal_uInt16 compressAsPNG(const Graphic& rGraphic, SvStream& rOutputStream, sal_uInt32 nCompression);
};
#endif // INCLUDED_VCL_GRAPHICFILTER_HXX
diff --git a/include/vcl/help.hxx b/include/vcl/help.hxx
index 2070caa67269..09eca5cecf88 100644
--- a/include/vcl/help.hxx
+++ b/include/vcl/help.hxx
@@ -91,7 +91,7 @@ public:
const Rectangle& rScreenRect,
const OUString& rHelpText,
const OUString& rLongHelpText,
- QuickHelpFlags nStyle = QuickHelpFlags::NONE );
+ QuickHelpFlags nStyle );
static bool ShowQuickHelp( vcl::Window* pParent,
const Rectangle& rScreenRect,
const OUString& rHelpText,
@@ -103,7 +103,7 @@ public:
static sal_uLong ShowPopover(vcl::Window* pParent,
const Rectangle& rScreenRect,
const OUString& rText,
- QuickHelpFlags nStyle = QuickHelpFlags::NONE);
+ QuickHelpFlags nStyle);
static void UpdatePopover(sal_uLong nId,
vcl::Window* pParent,
const Rectangle& rScreenRect,
diff --git a/include/vcl/implimagetree.hxx b/include/vcl/implimagetree.hxx
index 95fca467ce97..a76442f93a64 100644
--- a/include/vcl/implimagetree.hxx
+++ b/include/vcl/implimagetree.hxx
@@ -45,7 +45,7 @@ public:
bool loadImage(
OUString const & name, OUString const & style,
- BitmapEx & bitmap, bool localized = false );
+ BitmapEx & bitmap, bool localized );
bool loadDefaultImage(
OUString const & style,
diff --git a/include/vcl/lstbox.hxx b/include/vcl/lstbox.hxx
index e35366a1358a..de111895601d 100644
--- a/include/vcl/lstbox.hxx
+++ b/include/vcl/lstbox.hxx
@@ -205,7 +205,7 @@ public:
sal_Int32 GetSavedValue() const { return mnSaveValue; }
bool IsValueChangedFromSaved() const { return mnSaveValue != GetSelectEntryPos(); }
- void SetSeparatorPos( sal_Int32 n = LISTBOX_ENTRY_NOTFOUND );
+ void SetSeparatorPos( sal_Int32 n );
sal_Int32 GetSeparatorPos() const;
bool IsTravelSelect() const;
diff --git a/include/vcl/menu.hxx b/include/vcl/menu.hxx
index 46c675ead879..989d852f0a6f 100644
--- a/include/vcl/menu.hxx
+++ b/include/vcl/menu.hxx
@@ -447,7 +447,7 @@ public:
/// Forward the KeyInput call to the MenuBar.
virtual void MenuBarKeyInput(const KeyEvent& rEvent) override;
- void ShowCloseButton( bool bShow = true );
+ void ShowCloseButton( bool bShow );
bool HasCloseButton() const { return mbCloseBtnVisible; }
bool HasFloatButton() const { return mbFloatBtnVisible; }
bool HasHideButton() const { return mbHideBtnVisible; }
@@ -510,7 +510,7 @@ protected:
SAL_DLLPRIVATE sal_uInt16 ImplExecute( const VclPtr<vcl::Window>& xWindow, const Rectangle& rRect, FloatWinPopupFlags nPopupFlags, Menu* pStaredFrom, bool bPreSelectFirst );
SAL_DLLPRIVATE void ImplFlushPendingSelect();
SAL_DLLPRIVATE long ImplCalcHeight( sal_uInt16 nEntries ) const;
- SAL_DLLPRIVATE sal_uInt16 ImplCalcVisEntries( long nMaxHeight, sal_uInt16 nStartEntry = 0, sal_uInt16* pLastVisible = nullptr ) const;
+ SAL_DLLPRIVATE sal_uInt16 ImplCalcVisEntries( long nMaxHeight, sal_uInt16 nStartEntry, sal_uInt16* pLastVisible = nullptr ) const;
public:
PopupMenu();
diff --git a/include/vcl/opengl/OpenGLHelper.hxx b/include/vcl/opengl/OpenGLHelper.hxx
index 97db306bb5d3..458021f4ca27 100644
--- a/include/vcl/opengl/OpenGLHelper.hxx
+++ b/include/vcl/opengl/OpenGLHelper.hxx
@@ -46,7 +46,7 @@ struct VCL_DLLPUBLIC OpenGLHelper
public:
- static OString GetDigest(const OUString& rVertexShaderName, const OUString& rFragmentShaderName, const OString& preamble = "" );
+ static OString GetDigest(const OUString& rVertexShaderName, const OUString& rFragmentShaderName, const OString& preamble );
static GLint LoadShaders(const OUString& rVertexShaderName, const OUString& rFragmentShaderName, const OUString& rGeometryShaderName, const OString& preamble, const OString& rDigest );
static GLint LoadShaders(const OUString& rVertexShaderName, const OUString& rFragmentShaderName, const OString& preamble, const OString& rDigest );
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx
index f52afed141f5..bdc832d58ff2 100644
--- a/include/vcl/outdev.hxx
+++ b/include/vcl/outdev.hxx
@@ -592,7 +592,7 @@ public:
#endif
protected:
- virtual void CopyDeviceArea( SalTwoRect& aPosAry, bool bWindowInvalidate = false);
+ virtual void CopyDeviceArea( SalTwoRect& aPosAry, bool bWindowInvalidate);
SAL_DLLPRIVATE void drawOutDevDirect ( const OutputDevice* pSrcDev, SalTwoRect& rPosAry );
@@ -623,7 +623,7 @@ public:
bool IsOutputEnabled() const { return mbOutput; }
bool IsDeviceOutputNecessary() const { return (mbOutput && mbDevOutput); }
- void SetAntialiasing( AntialiasingFlags nMode = AntialiasingFlags::NONE );
+ void SetAntialiasing( AntialiasingFlags nMode );
AntialiasingFlags GetAntialiasing() const { return mnAntialiasing; }
void SetDrawMode( DrawModeFlags nDrawMode );
@@ -718,7 +718,7 @@ public:
void DrawPixel( const Point& rPt );
void DrawPixel( const Point& rPt, const Color& rColor );
- void DrawPixel( const tools::Polygon& rPts, const Color* pColors = nullptr );
+ void DrawPixel( const tools::Polygon& rPts, const Color* pColors );
void DrawPixel( const tools::Polygon& rPts, const Color& rColor );
Color GetPixel( const Point& rPt ) const;
@@ -866,7 +866,7 @@ public:
private:
SAL_DLLPRIVATE void ImplDrawPolygon( const tools::Polygon& rPoly, const tools::PolyPolygon* pClipPolyPoly = nullptr );
- SAL_DLLPRIVATE void ImplDrawPolyPolygon( const tools::PolyPolygon& rPolyPoly, const tools::PolyPolygon* pClipPolyPoly = nullptr );
+ SAL_DLLPRIVATE void ImplDrawPolyPolygon( const tools::PolyPolygon& rPolyPoly, const tools::PolyPolygon* pClipPolyPoly );
SAL_DLLPRIVATE void ImplDrawPolyPolygon( sal_uInt16 nPoly, const tools::PolyPolygon& rPolyPoly );
// #i101491#
// Helper who implements the DrawPolyPolygon functionality for basegfx::B2DPolyPolygon
@@ -1095,7 +1095,7 @@ public:
sal_uLong nLayoutWidth = 0, const long* pDXArray = nullptr ) const;
bool GetTextOutlines( basegfx::B2DPolyPolygonVector &rVector,
- const OUString& rStr, sal_Int32 nBase = 0, sal_Int32 nIndex = 0,
+ const OUString& rStr, sal_Int32 nBase, sal_Int32 nIndex = 0,
sal_Int32 nLen = -1, bool bOptimize = true,
sal_uLong nLayoutWidth = 0, const long* pDXArray = nullptr ) const;
@@ -1159,11 +1159,11 @@ public:
float approximate_char_width() const;
void DrawTextArray( const Point& rStartPt, const OUString& rStr,
- const long* pDXAry = nullptr,
+ const long* pDXAry,
sal_Int32 nIndex = 0,
sal_Int32 nLen = -1,
SalLayoutFlags flags = SalLayoutFlags::NONE);
- long GetTextArray( const OUString& rStr, long* pDXAry = nullptr,
+ long GetTextArray( const OUString& rStr, long* pDXAry,
sal_Int32 nIndex = 0, sal_Int32 nLen = -1,
vcl::TextLayoutCache const* = nullptr) const;
@@ -1173,13 +1173,13 @@ public:
const OUString& rStr,
sal_Int32 nIndex = 0, sal_Int32 nLen = -1);
sal_Int32 GetTextBreak( const OUString& rStr, long nTextWidth,
- sal_Int32 nIndex = 0, sal_Int32 nLen = -1,
+ sal_Int32 nIndex, sal_Int32 nLen = -1,
long nCharExtra = 0,
vcl::TextLayoutCache const* = nullptr) const;
sal_Int32 GetTextBreak( const OUString& rStr, long nTextWidth,
sal_Unicode nExtraChar, sal_Int32& rExtraCharPos,
sal_Int32 nIndex, sal_Int32 nLen,
- long nCharExtra = 0,
+ long nCharExtra,
vcl::TextLayoutCache const* = nullptr) const;
std::shared_ptr<vcl::TextLayoutCache> CreateTextLayoutCache(OUString const&) const;
@@ -1266,7 +1266,7 @@ public:
static void EndFontSubstitution();
static void AddFontSubstitute( const OUString& rFontName,
const OUString& rReplaceFontName,
- AddFontSubstituteFlags nFlags = AddFontSubstituteFlags::NONE );
+ AddFontSubstituteFlags nFlags );
static void RemoveFontSubstitute( sal_uInt16 n );
static sal_uInt16 GetFontSubstituteCount();
@@ -1321,7 +1321,7 @@ private:
public:
SystemTextLayoutData GetSysTextLayoutData( const Point& rStartPt, const OUString& rStr,
- sal_Int32 nIndex = 0, sal_Int32 nLen = -1,
+ sal_Int32 nIndex, sal_Int32 nLen = -1,
const long* pDXAry = nullptr ) const;
SAL_DLLPRIVATE bool ImplIsAntiparallel() const ;
diff --git a/include/vcl/pdfextoutdevdata.hxx b/include/vcl/pdfextoutdevdata.hxx
index b69562d9489e..100c8b4a5744 100644
--- a/include/vcl/pdfextoutdevdata.hxx
+++ b/include/vcl/pdfextoutdevdata.hxx
@@ -226,7 +226,7 @@ public:
/** provides detailed information about a destination range which previously has been registered using RegisterDest.
*/
- void DescribeRegisteredDest( sal_Int32 nDestId, const Rectangle& rRect, sal_Int32 nPageNr = -1, PDFWriter::DestAreaType eType = PDFWriter::XYZ );
+ void DescribeRegisteredDest( sal_Int32 nDestId, const Rectangle& rRect, sal_Int32 nPageNr, PDFWriter::DestAreaType eType = PDFWriter::XYZ );
//<---i56629
@@ -309,7 +309,7 @@ public:
@returns
the outline item id of the new item
*/
- sal_Int32 CreateOutlineItem( sal_Int32 nParent = 0, const OUString& rText = OUString(), sal_Int32 nDestID = -1 );
+ sal_Int32 CreateOutlineItem( sal_Int32 nParent, const OUString& rText = OUString(), sal_Int32 nDestID = -1 );
/** Create a new note on a page
diff --git a/include/vcl/pdfwriter.hxx b/include/vcl/pdfwriter.hxx
index 132c07da93df..625571487742 100644
--- a/include/vcl/pdfwriter.hxx
+++ b/include/vcl/pdfwriter.hxx
@@ -666,7 +666,7 @@ The following structure describes the permissions used in PDF security
Colors and other state information MUST
be set again or are undefined.
*/
- void NewPage( sal_Int32 nPageWidth = 0, sal_Int32 nPageHeight = 0, Orientation eOrientation = Inherit );
+ void NewPage( sal_Int32 nPageWidth, sal_Int32 nPageHeight = 0, Orientation eOrientation = Inherit );
/** Play a metafile like an outputdevice would do
*/
struct PlayMetafileContext
@@ -756,7 +756,7 @@ The following structure describes the permissions used in PDF security
const OUString& rStr,
sal_Int32 nIndex, sal_Int32 nLen );
void DrawText( const Rectangle& rRect,
- const OUString& rStr, DrawTextFlags nStyle = DrawTextFlags::NONE );
+ const OUString& rStr, DrawTextFlags nStyle );
void DrawPixel( const Point& rPt, const Color& rColor );
void DrawPixel( const Point& rPt )
@@ -870,7 +870,7 @@ The following structure describes the permissions used in PDF security
the destination id (to be used in SetLinkDest) or
-1 if page id does not exist
*/
- sal_Int32 CreateNamedDest( const OUString& sDestName, const Rectangle& rRect, sal_Int32 nPageNr = -1, DestAreaType eType = XYZ );
+ sal_Int32 CreateNamedDest( const OUString& sDestName, const Rectangle& rRect, sal_Int32 nPageNr, DestAreaType eType = XYZ );
/** Create a new destination to be used in a link
@param rRect
@@ -887,7 +887,7 @@ The following structure describes the permissions used in PDF security
the destination id (to be used in SetLinkDest) or
-1 if page id does not exist
*/
- sal_Int32 CreateDest( const Rectangle& rRect, sal_Int32 nPageNr = -1, DestAreaType eType = XYZ );
+ sal_Int32 CreateDest( const Rectangle& rRect, sal_Int32 nPageNr, DestAreaType eType = XYZ );
/** Create a new link on a page
@param rRect
@@ -902,7 +902,7 @@ The following structure describes the permissions used in PDF security
the link id (to be used in SetLinkDest, SetLinkURL) or
-1 if page id does not exist
*/
- sal_Int32 CreateLink( const Rectangle& rRect, sal_Int32 nPageNr = -1 );
+ sal_Int32 CreateLink( const Rectangle& rRect, sal_Int32 nPageNr );
/** creates a destination which is not intended to be referred to by a link, but by a public destination Id.
@@ -926,7 +926,7 @@ The following structure describes the permissions used in PDF security
@returns
the internal destination Id.
*/
- sal_Int32 RegisterDestReference( sal_Int32 nDestId, const Rectangle& rRect, sal_Int32 nPageNr = -1, DestAreaType eType = XYZ );
+ sal_Int32 RegisterDestReference( sal_Int32 nDestId, const Rectangle& rRect, sal_Int32 nPageNr, DestAreaType eType = XYZ );
/** Set the destination for a link
@@ -993,7 +993,7 @@ The following structure describes the permissions used in PDF security
@returns
the outline item id of the new item
*/
- sal_Int32 CreateOutlineItem( sal_Int32 nParent = 0, const OUString& rText = OUString(), sal_Int32 nDestID = -1 );
+ sal_Int32 CreateOutlineItem( sal_Int32 nParent, const OUString& rText = OUString(), sal_Int32 nDestID = -1 );
/** Set an outline item's parent
@@ -1039,7 +1039,7 @@ The following structure describes the permissions used in PDF security
number of page the note is on (as returned by NewPage)
or -1 in which case the current page is used
*/
- void CreateNote( const Rectangle& rRect, const PDFNote& rNote, sal_Int32 nPageNr = -1 );
+ void CreateNote( const Rectangle& rRect, const PDFNote& rNote, sal_Int32 nPageNr );
/** begin a new logical structure element
@@ -1083,7 +1083,7 @@ The following structure describes the permissions used in PDF security
@returns
the new structure element's id for use in SetCurrentStructureElement
*/
- sal_Int32 BeginStructureElement( enum StructElement eType, const OUString& rAlias = OUString() );
+ sal_Int32 BeginStructureElement( enum StructElement eType, const OUString& rAlias );
/** end the current logical structure element
Close the current structure element. The current element's
@@ -1191,7 +1191,7 @@ The following structure describes the permissions used in PDF security
@param nPageNr
the page number to apply the autoadvance time to; -1 denotes the current page
*/
- void SetAutoAdvanceTime( sal_uInt32 nSeconds, sal_Int32 nPageNr = -1 );
+ void SetAutoAdvanceTime( sal_uInt32 nSeconds, sal_Int32 nPageNr );
/** Sets the transitional effect to be applied when the current page gets shown.
@@ -1206,7 +1206,7 @@ The following structure describes the permissions used in PDF security
@param nPageNr
the page number to apply the effect to; -1 denotes the current page
*/
- void SetPageTransition( PageTransition eType, sal_uInt32 nMilliSec, sal_Int32 nPageNr = -1 );
+ void SetPageTransition( PageTransition eType, sal_uInt32 nMilliSec, sal_Int32 nPageNr );
/** create a new form control
diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx
index d4e9dfe5e4fb..809f16497489 100644
--- a/include/vcl/print.hxx
+++ b/include/vcl/print.hxx
@@ -292,7 +292,7 @@ public:
bool SetJobSetup( const JobSetup& rSetup );
const JobSetup& GetJobSetup() const { return maJobSetup; }
- bool Setup( vcl::Window* pWindow = nullptr, bool bPapersizeFromSetup = false );
+ bool Setup( vcl::Window* pWindow, bool bPapersizeFromSetup = false );
bool SetPrinterProps( const Printer* pPrinter );
/** SetPrinterOptions is used internally only now
@@ -338,7 +338,7 @@ public:
const Point& GetPageOffsetPixel() const { return maPageOffset; }
Point GetPageOffset() const { return PixelToLogic( maPageOffset ); }
- bool SetCopyCount( sal_uInt16 nCopy, bool bCollate = false );
+ bool SetCopyCount( sal_uInt16 nCopy, bool bCollate );
sal_uInt16 GetCopyCount() const { return mnCopyCount; }
bool IsCollateCopy() const { return mbCollateCopy; }
@@ -599,7 +599,7 @@ public:
/** @return An empty Any for not existing properties */
css::uno::Any getValue( const OUString& i_rPropertyName ) const;
- bool getBoolValue( const OUString& i_rPropertyName, bool i_bDefault = false ) const;
+ bool getBoolValue( const OUString& i_rPropertyName, bool i_bDefault ) const;
// convenience for fixed strings
bool getBoolValue( const char* i_pPropName, bool i_bDefault = false ) const
{ return getBoolValue( OUString::createFromAscii( i_pPropName ), i_bDefault ); }
@@ -682,7 +682,7 @@ public:
note: max value < min value means do not apply min/max values
*/
static css::uno::Any setRangeControlOpt( const OUString& i_rID, const OUString& i_rTitle, const OUString& i_rHelpId,
- const OUString& i_rProperty, sal_Int32 i_nValue, sal_Int32 i_nMinValue = -1,
+ const OUString& i_rProperty, sal_Int32 i_nValue, sal_Int32 i_nMinValue,
sal_Int32 i_nMaxValue = -2, const UIControlOptions& i_rControlOptions = UIControlOptions());
/** Show a string field
@@ -691,7 +691,7 @@ public:
*/
static css::uno::Any setEditControlOpt( const OUString& i_rID, const OUString& i_rTitle, const OUString& i_rHelpId,
const OUString& i_rProperty, const OUString& i_rValue,
- const UIControlOptions& i_rControlOptions = UIControlOptions());
+ const UIControlOptions& i_rControlOptions);
}; // class PrinterOptionsHelper
} // namespace vcl
diff --git a/include/vcl/printerinfomanager.hxx b/include/vcl/printerinfomanager.hxx
index f548bf239e91..471c3a99a296 100644
--- a/include/vcl/printerinfomanager.hxx
+++ b/include/vcl/printerinfomanager.hxx
@@ -165,7 +165,7 @@ public:
// is not writeable
// if bCheckOnly is true, the printer is not really removed;
// this is for checking if the removal would fail
- virtual bool removePrinter( const OUString& rPrinterName, bool bCheckOnly = false );
+ virtual bool removePrinter( const OUString& rPrinterName, bool bCheckOnly );
// save the changes to all printers. this fails if there
// is no writable config file at all
diff --git a/include/vcl/slider.hxx b/include/vcl/slider.hxx
index 3112d002c325..5b9cd1506a71 100644
--- a/include/vcl/slider.hxx
+++ b/include/vcl/slider.hxx
@@ -73,7 +73,7 @@ private:
SAL_DLLPRIVATE bool ImplIsPageDown( const Point& rPos );
SAL_DLLPRIVATE long ImplSlide( long nNewPos, bool bCallEndSlide );
SAL_DLLPRIVATE long ImplDoAction( bool bCallEndSlide );
- SAL_DLLPRIVATE void ImplDoMouseAction( const Point& rPos, bool bCallAction = true );
+ SAL_DLLPRIVATE void ImplDoMouseAction( const Point& rPos, bool bCallAction );
SAL_DLLPRIVATE void ImplDoSlide( long nNewPos );
SAL_DLLPRIVATE void ImplDoSlideAction( ScrollType eScrollType );
SAL_DLLPRIVATE void ImplUpdateLinkedField();
diff --git a/include/vcl/splitwin.hxx b/include/vcl/splitwin.hxx
index 3319dc70b7ba..920b02e96275 100644
--- a/include/vcl/splitwin.hxx
+++ b/include/vcl/splitwin.hxx
@@ -145,16 +145,16 @@ public:
virtual bool PreNotify( NotifyEvent& rNEvt ) override;
void InsertItem( sal_uInt16 nId, vcl::Window* pWindow, long nSize,
- sal_uInt16 nPos = SPLITWINDOW_APPEND, sal_uInt16 nIntoSetId = 0,
+ sal_uInt16 nPos, sal_uInt16 nIntoSetId = 0,
SplitWindowItemFlags nBits = SplitWindowItemFlags::NONE );
void InsertItem( sal_uInt16 nId, long nSize,
- sal_uInt16 nPos = SPLITWINDOW_APPEND, sal_uInt16 nIntoSetId = 0,
+ sal_uInt16 nPos, sal_uInt16 nIntoSetId = 0,
SplitWindowItemFlags nBits = SplitWindowItemFlags::NONE );
void RemoveItem( sal_uInt16 nId );
void Clear();
void SplitItem( sal_uInt16 nId, long nNewSize,
- bool bPropSmall = false,
+ bool bPropSmall,
bool bPropGreat = false );
void SetItemSize( sal_uInt16 nId, long nNewSize );
long GetItemSize( sal_uInt16 nId ) const;
@@ -178,7 +178,7 @@ public:
sal_uInt16 GetItemCount( sal_uInt16 nSetId = 0 ) const;
bool IsItemValid( sal_uInt16 nId ) const;
- void SetAlign( WindowAlign eNewAlign = WindowAlign::Top );
+ void SetAlign( WindowAlign eNewAlign );
WindowAlign GetAlign() const { return meAlign; }
bool IsHorizontal() const { return mbHorz; }
diff --git a/include/vcl/syschild.hxx b/include/vcl/syschild.hxx
index 767ec9587882..b04e6f662bfa 100644
--- a/include/vcl/syschild.hxx
+++ b/include/vcl/syschild.hxx
@@ -47,7 +47,7 @@ public:
// per default systemchildwindows erase their background for better plugin support
// however, this might not always be required
- void EnableEraseBackground( bool bEnable = true );
+ void EnableEraseBackground( bool bEnable );
void SetForwardKey( bool bEnable );
// return the platform specific handle/id of this window;
sal_IntPtr GetParentWindowHandle();
diff --git a/include/vcl/syswin.hxx b/include/vcl/syswin.hxx
index 837a079fcc9e..1d98a3d9b246 100644
--- a/include/vcl/syswin.hxx
+++ b/include/vcl/syswin.hxx
@@ -216,7 +216,7 @@ public:
// separately from the window title
void SetRepresentedURL( const OUString& );
- void ShowTitleButton( TitleButton nButton, bool bVisible = true );
+ void ShowTitleButton( TitleButton nButton, bool bVisible );
bool IsTitleButtonVisible( TitleButton nButton ) const;
void SetPin( bool bPin );
diff --git a/include/vcl/tabctrl.hxx b/include/vcl/tabctrl.hxx
index b24e3dacf4e3..0be854f38699 100644
--- a/include/vcl/tabctrl.hxx
+++ b/include/vcl/tabctrl.hxx
@@ -71,7 +71,7 @@ protected:
SAL_DLLPRIVATE void ImplActivateTabPage( bool bNext );
SAL_DLLPRIVATE void ImplShowFocus();
SAL_DLLPRIVATE void ImplDrawItem(vcl::RenderContext& rRenderContext, ImplTabItem* pItem,
- const Rectangle& rCurRect, bool bFirstInGroup = false,
+ const Rectangle& rCurRect, bool bFirstInGroup,
bool bLastInGroup = false, bool bIsCurrentItem = false);
SAL_DLLPRIVATE void ImplFreeLayoutData();
SAL_DLLPRIVATE bool ImplHandleKeyEvent( const KeyEvent& rKeyEvent );
diff --git a/include/vcl/taskpanelist.hxx b/include/vcl/taskpanelist.hxx
index e1b908d25839..5a6507fcf1e0 100644
--- a/include/vcl/taskpanelist.hxx
+++ b/include/vcl/taskpanelist.hxx
@@ -28,7 +28,7 @@
class VCL_DLLPUBLIC TaskPaneList
{
::std::vector< VclPtr<vcl::Window> > mTaskPanes;
- vcl::Window *FindNextFloat( vcl::Window *pWindow, bool bForward = true );
+ vcl::Window *FindNextFloat( vcl::Window *pWindow, bool bForward );
vcl::Window *FindNextSplitter( vcl::Window *pWindow );
public:
diff --git a/include/vcl/texteng.hxx b/include/vcl/texteng.hxx
index 400d08060264..79bf8ad3b388 100644
--- a/include/vcl/texteng.hxx
+++ b/include/vcl/texteng.hxx
@@ -157,7 +157,7 @@ protected:
// to remain compatible in the minor release we copy the above ImpInsertText
// function and add the extra parameter we need but make sure this function
// gets not exported. First and second parameter swapped to have a different signatur.
- SAL_DLLPRIVATE TextPaM ImpInsertText( sal_Unicode c, const TextSelection& rSel, bool bOverwrite = false, bool bIsUserInput = false );
+ SAL_DLLPRIVATE TextPaM ImpInsertText( sal_Unicode c, const TextSelection& rSel, bool bOverwrite, bool bIsUserInput = false );
// some other new functions needed that must not be exported to remain compatible
SAL_DLLPRIVATE css::uno::Reference< css::i18n::XExtendedInputSequenceChecker > const & GetInputSequenceChecker();
SAL_DLLPRIVATE bool IsInputSequenceCheckingRequired( sal_Unicode c, const TextSelection& rCurSel ) const;
@@ -173,7 +173,7 @@ protected:
DECL_LINK_TYPED( IdleFormatHdl, Idle *, void );
void CheckIdleFormatter();
- void IdleFormatAndUpdate( TextView* pCurView = nullptr, sal_uInt16 nMaxTimerRestarts = 5 );
+ void IdleFormatAndUpdate( TextView* pCurView, sal_uInt16 nMaxTimerRestarts = 5 );
bool CreateLines( sal_uInt32 nPara );
void CreateAndInsertEmptyLine( sal_uInt32 nPara );
diff --git a/include/vcl/textview.hxx b/include/vcl/textview.hxx
index 81fd8e430e7c..f757651db086 100644
--- a/include/vcl/textview.hxx
+++ b/include/vcl/textview.hxx
@@ -69,7 +69,7 @@ protected:
TextPaM ImpDelete( sal_uInt8 nMode, sal_uInt8 nDelMode );
bool IsInSelection( const TextPaM& rPaM );
- void ImpPaint(vcl::RenderContext& rRenderContext, const Point& rStartPos, Rectangle const* pPaintArea, TextSelection const* pPaintRange = nullptr, TextSelection const* pSelection = nullptr);
+ void ImpPaint(vcl::RenderContext& rRenderContext, const Point& rStartPos, Rectangle const* pPaintArea, TextSelection const* pPaintRange, TextSelection const* pSelection = nullptr);
void ImpPaint(vcl::RenderContext& rRenderContext, const Rectangle& rRect);
void ImpShowCursor( bool bGotoCursor, bool bForceVisCursor, bool bEndKey );
void ImpHighlight( const TextSelection& rSel );
diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx
index 96a25803fe7a..a0f74c9aad4e 100644
--- a/include/vcl/toolbox.hxx
+++ b/include/vcl/toolbox.hxx
@@ -180,7 +180,7 @@ private:
SAL_DLLPRIVATE void ImplFormat( bool bResize = false );
SAL_DLLPRIVATE void ImplDrawSpin(vcl::RenderContext& rRenderContext);
SAL_DLLPRIVATE void ImplDrawSeparator(vcl::RenderContext& rRenderContext, sal_uInt16 nPos, const Rectangle& rRect);
- SAL_DLLPRIVATE void ImplDrawItem(vcl::RenderContext& rRenderContext, sal_uInt16 nPos, sal_uInt16 nHighlight = 0 );
+ SAL_DLLPRIVATE void ImplDrawItem(vcl::RenderContext& rRenderContext, sal_uInt16 nPos, sal_uInt16 nHighlight );
using Window::ImplInvalidate;
SAL_DLLPRIVATE void ImplInvalidate( bool bNewCalc = false, bool bFullPaint = false );
SAL_DLLPRIVATE void ImplUpdateItem( sal_uInt16 nIndex = 0xFFFF );
@@ -215,7 +215,7 @@ private:
ToolBox& operator= (const ToolBox &) = delete;
public:
- SAL_DLLPRIVATE void ImplFloatControl( bool bStart, FloatingWindow* pWindow = nullptr );
+ SAL_DLLPRIVATE void ImplFloatControl( bool bStart, FloatingWindow* pWindow );
SAL_DLLPRIVATE void ImplDisableFlatButtons();
static SAL_DLLPRIVATE int ImplGetDragWidth( ToolBox* pThis );
@@ -230,7 +230,7 @@ public:
SAL_DLLPRIVATE void ImplDrawConstantBackground(vcl::RenderContext& rRenderContext, const vcl::Region &rRegion, bool bIsInPopupMode);
SAL_DLLPRIVATE void ImplDrawBackground(vcl::RenderContext& rRenderContext, const Rectangle &rRect);
- SAL_DLLPRIVATE void ImplErase(vcl::RenderContext& rRenderContext, const Rectangle &rRect, bool bHighlight = false, bool bHasOpenPopup = false );
+ SAL_DLLPRIVATE void ImplErase(vcl::RenderContext& rRenderContext, const Rectangle &rRect, bool bHighlight, bool bHasOpenPopup = false );
SAL_DLLPRIVATE void ImplDrawBorder(vcl::RenderContext& rRenderContext);
static SAL_DLLPRIVATE const ImplToolItem *ImplGetFirstClippedItem( const ToolBox* pThis );
@@ -300,7 +300,7 @@ public:
/// Insert a command (like '.uno:Save').
virtual void InsertItem( const OUString& rCommand,
const css::uno::Reference<css::frame::XFrame>& rFrame,
- ToolBoxItemBits nBits = ToolBoxItemBits::NONE,
+ ToolBoxItemBits nBits,
const Size& rRequestedSize = Size(),
sal_uInt16 nPos = TOOLBOX_APPEND );
void InsertItem( sal_uInt16 nItemId, const Image& rImage,
@@ -403,7 +403,7 @@ public:
/// Shows or hides items.
void ShowItem(sal_uInt16 nItemId, bool bVisible = true);
/// Overload to provide ShowItem via command id.
- void ShowItem(const OUString& rCommand, bool bVisible = true) { ShowItem(GetItemId(rCommand), bVisible); }
+ void ShowItem(const OUString& rCommand, bool bVisible) { ShowItem(GetItemId(rCommand), bVisible); }
/// Convenience method to hide items (via ShowItem).
void HideItem(sal_uInt16 nItemId) { ShowItem( nItemId, false ); }
@@ -447,7 +447,7 @@ public:
WinBits GetStyle() const { return mnWinStyle; }
// enable/disable undocking
- void Lock( bool bLock = true );
+ void Lock( bool bLock );
// read configuration to determine locking behaviour
static bool AlwaysLocked();
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx
index b8211dec0a32..0be3f77688d9 100644
--- a/include/vcl/window.hxx
+++ b/include/vcl/window.hxx
@@ -631,7 +631,7 @@ protected:
SAL_DLLPRIVATE void ImplScroll( const Rectangle& rRect, long nHorzScroll, long nVertScroll, ScrollFlags nFlags );
- SAL_DLLPRIVATE bool ImplSetClipFlagChildren( bool bSysObjOnlySmaller = false );
+ SAL_DLLPRIVATE bool ImplSetClipFlagChildren( bool bSysObjOnlySmaller );
SAL_DLLPRIVATE bool ImplSetClipFlagOverlapWindows( bool bSysObjOnlySmaller = false );
SAL_DLLPRIVATE WinBits ImplInitRes( const ResId& rResId );
@@ -778,7 +778,7 @@ protected:
// FIXME: this is a hack to workaround missing layout functionality
SAL_DLLPRIVATE void ImplAdjustNWFSizes();
- virtual void CopyDeviceArea( SalTwoRect& aPosAry, bool bWindowInvalidate = false) override;
+ virtual void CopyDeviceArea( SalTwoRect& aPosAry, bool bWindowInvalidate) override;
virtual void ClipToPaintRegion( Rectangle& rDstRect ) override;
virtual bool UsePolyPolygonForComplexGradient() override;
@@ -1194,9 +1194,8 @@ public:
void ShowTracking( const Rectangle& rRect,
ShowTrackFlags nFlags = ShowTrackFlags::Small );
void HideTracking();
- void InvertTracking( const Rectangle& rRect,
- ShowTrackFlags nFlags = ShowTrackFlags::Small );
- void InvertTracking( const tools::Polygon& rPoly, ShowTrackFlags nFlags = ShowTrackFlags::NONE );
+ void InvertTracking( const Rectangle& rRect, ShowTrackFlags nFlags );
+ void InvertTracking( const tools::Polygon& rPoly, ShowTrackFlags nFlags );
void StartTracking( StartTrackingFlags nFlags = StartTrackingFlags::NONE );
void EndTracking( TrackingEventFlags nFlags = TrackingEventFlags::NONE );
@@ -1206,7 +1205,7 @@ public:
void EndAutoScroll();
bool HandleScrollCommand( const CommandEvent& rCmd,
- ScrollBar* pHScrl = nullptr,
+ ScrollBar* pHScrl,
ScrollBar* pVScrl = nullptr );
void SaveBackground( const Point& rPos, const Size& rSize,
diff --git a/include/vcl/wmf.hxx b/include/vcl/wmf.hxx
index c938e9c5fe41..7ee24479218c 100644
--- a/include/vcl/wmf.hxx
+++ b/include/vcl/wmf.hxx
@@ -55,11 +55,11 @@ struct WMF_EXTERNALHEADER
}
};
-bool ConvertWMFToGDIMetaFile( SvStream & rStreamWMF, GDIMetaFile & rGDIMetaFile, FilterConfigItem* pConfigItem = nullptr, WMF_EXTERNALHEADER *pExtHeader = nullptr );
+bool ConvertWMFToGDIMetaFile( SvStream & rStreamWMF, GDIMetaFile & rGDIMetaFile, FilterConfigItem* pConfigItem, WMF_EXTERNALHEADER *pExtHeader = nullptr );
VCL_DLLPUBLIC bool ReadWindowMetafile( SvStream& rStream, GDIMetaFile& rMTF );
-VCL_DLLPUBLIC bool ConvertGDIMetaFileToWMF( const GDIMetaFile & rMTF, SvStream & rTargetStream, FilterConfigItem* pConfigItem = nullptr, bool bPlaceable = true );
+VCL_DLLPUBLIC bool ConvertGDIMetaFileToWMF( const GDIMetaFile & rMTF, SvStream & rTargetStream, FilterConfigItem* pConfigItem, bool bPlaceable = true );
bool ConvertGDIMetaFileToEMF(const GDIMetaFile & rMTF, SvStream & rTargetStream);
diff --git a/include/vcl/wrkwin.hxx b/include/vcl/wrkwin.hxx
index 787712e14124..efaa697634f5 100644
--- a/include/vcl/wrkwin.hxx
+++ b/include/vcl/wrkwin.hxx
@@ -89,7 +89,7 @@ public:
/**
@overload void StartPresentationMode( PresentationFlags nFlags, sal_uInt32 nDisplayScreen)
*/
- void StartPresentationMode( PresentationFlags nFlags = PresentationFlags::NONE );
+ void StartPresentationMode( PresentationFlags nFlags );
bool IsPresentationMode() const { return mbPresentationMode; }
bool IsMinimized() const;