loplugin:countusersofdefaultparams in vcl

Change-Id: I046e6f16c5b171a06e2be2da2f72340634f3e979
Reviewed-on: https://gerrit.libreoffice.org/28891
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin 2016-09-14 12:26:36 +02:00
parent c77b933f90
commit 6df2c90c08
51 changed files with 70 additions and 70 deletions

View File

@ -62,6 +62,9 @@ for k,v in callDict.iteritems():
# windows-only stuff # windows-only stuff
if "ShutdownIcon::OpenURL" in k: if "ShutdownIcon::OpenURL" in k:
continue continue
# template magic
if k.startswith("void VclPtr::VclPtr(const VclPtr<type-parameter-?-?> &,typename UpCast<"):
continue
if k in definitionToSourceLocationMap: if k in definitionToSourceLocationMap:
tmp1list.append((k, definitionToSourceLocationMap[k])) tmp1list.append((k, definitionToSourceLocationMap[k]))

View File

@ -49,7 +49,7 @@ public:
virtual void InsertItem(const OUString& rCommand, virtual void InsertItem(const OUString& rCommand,
const css::uno::Reference<css::frame::XFrame>& rFrame, const css::uno::Reference<css::frame::XFrame>& rFrame,
ToolBoxItemBits nBits, ToolBoxItemBits nBits,
const Size& rRequestedSize = Size(), const Size& rRequestedSize,
sal_uInt16 nPos = TOOLBOX_APPEND) override; sal_uInt16 nPos = TOOLBOX_APPEND) override;
virtual bool Notify (NotifyEvent& rEvent) override; virtual bool Notify (NotifyEvent& rEvent) override;

View File

@ -102,7 +102,7 @@ public:
const Point& rDestPt, const Point& rDestPt,
const Size& rDestSz, const Size& rDestSz,
long nExtraData, long nExtraData,
OutputDevice* pFirstFrameOutDev = nullptr); OutputDevice* pFirstFrameOutDev);
void Stop( OutputDevice* pOutDev = nullptr, long nExtraData = 0 ); void Stop( OutputDevice* pOutDev = nullptr, long nExtraData = 0 );
@ -143,7 +143,7 @@ public:
bool Mirror( BmpMirrorFlags nMirrorFlags ); bool Mirror( BmpMirrorFlags nMirrorFlags );
bool Adjust( bool Adjust(
short nLuminancePercent, short nLuminancePercent,
short nContrastPercent = 0, short nContrastPercent,
short nChannelRPercent = 0, short nChannelRPercent = 0,
short nChannelGPercent = 0, short nChannelGPercent = 0,
short nChannelBPercent = 0, short nChannelBPercent = 0,

View File

@ -634,7 +634,7 @@ public:
bool Vectorize( bool Vectorize(
GDIMetaFile& rMtf, GDIMetaFile& rMtf,
sal_uInt8 cReduce, sal_uInt8 cReduce,
const Link<long,void>* pProgress = nullptr ); const Link<long,void>* pProgress );
/** Change various global color characteristics /** Change various global color characteristics

View File

@ -326,7 +326,7 @@ public:
*/ */
bool Adjust( bool Adjust(
short nLuminancePercent, short nLuminancePercent,
short nContrastPercent = 0, short nContrastPercent,
short nChannelRPercent = 0, short nChannelRPercent = 0,
short nChannelGPercent = 0, short nChannelGPercent = 0,
short nChannelBPercent = 0, short nChannelBPercent = 0,
@ -409,7 +409,7 @@ public:
const basegfx::B2DHomMatrix& rTransformation, const basegfx::B2DHomMatrix& rTransformation,
const basegfx::B2DRange& rVisibleRange, const basegfx::B2DRange& rVisibleRange,
double fMaximumArea, double fMaximumArea,
bool bSmooth = true) const; bool bSmooth) const;
/** Create ColorStack-modified version of this BitmapEx /** Create ColorStack-modified version of this BitmapEx

View File

@ -50,7 +50,7 @@ namespace o3tl
class VCL_DLLPUBLIC ButtonDialog : public Dialog class VCL_DLLPUBLIC ButtonDialog : public Dialog
{ {
public: public:
ButtonDialog( vcl::Window* pParent, WinBits nStyle = WB_STDDIALOG ); ButtonDialog( vcl::Window* pParent, WinBits nStyle );
virtual ~ButtonDialog() override; virtual ~ButtonDialog() override;
virtual void dispose() override; virtual void dispose() override;

View File

@ -523,7 +523,7 @@ class VCL_DLLPUBLIC TriStateBox : public CheckBox
TriStateBox & operator= ( const TriStateBox & ) = delete; TriStateBox & operator= ( const TriStateBox & ) = delete;
public: public:
explicit TriStateBox( vcl::Window* pParent, WinBits nStyle = 0 ); explicit TriStateBox( vcl::Window* pParent, WinBits nStyle );
}; };
class VCL_DLLPUBLIC DisclosureButton : public CheckBox class VCL_DLLPUBLIC DisclosureButton : public CheckBox

View File

@ -151,7 +151,7 @@ public:
CommandWheelData( long nWheelDelta, long nWheelNotchDelta, CommandWheelData( long nWheelDelta, long nWheelNotchDelta,
sal_uLong nScrollLines, sal_uLong nScrollLines,
CommandWheelMode nWheelMode, sal_uInt16 nKeyModifier, CommandWheelMode nWheelMode, sal_uInt16 nKeyModifier,
bool bHorz = false, bool bDeltaIsPixel = false ); bool bHorz, bool bDeltaIsPixel = false );
long GetDelta() const { return mnDelta; } long GetDelta() const { return mnDelta; }
long GetNotchDelta() const { return mnNotchDelta; } long GetNotchDelta() const { return mnNotchDelta; }
@ -208,7 +208,7 @@ class VCL_DLLPUBLIC CommandDialogData
{ {
ShowDialogId m_nDialogId; ShowDialogId m_nDialogId;
public: public:
CommandDialogData( ShowDialogId nDialogId = ShowDialogId::Preferences ) CommandDialogData( ShowDialogId nDialogId )
: m_nDialogId( nDialogId ) : m_nDialogId( nDialogId )
{} {}

View File

@ -274,7 +274,7 @@ protected:
DockingWindow( WindowType nType ); DockingWindow( WindowType nType );
public: public:
DockingWindow(vcl::Window* pParent, WinBits nStyle = WB_STDDOCKWIN); DockingWindow(vcl::Window* pParent, WinBits nStyle);
DockingWindow(vcl::Window* pParent, const OString& rID, const OUString& rUIXMLDescription, DockingWindow(vcl::Window* pParent, const OString& rID, const OUString& rUIXMLDescription,
const css::uno::Reference<css::frame::XFrame> &rFrame = css::uno::Reference<css::frame::XFrame>()); const css::uno::Reference<css::frame::XFrame> &rFrame = css::uno::Reference<css::frame::XFrame>());
virtual ~DockingWindow() override; virtual ~DockingWindow() override;

View File

@ -82,7 +82,7 @@ public:
class VCL_DLLPUBLIC SelectableFixedText : public Edit class VCL_DLLPUBLIC SelectableFixedText : public Edit
{ {
public: public:
explicit SelectableFixedText( vcl::Window* pParent, WinBits nStyle = 0 ); explicit SelectableFixedText( vcl::Window* pParent, WinBits nStyle );
virtual void LoseFocus() override; virtual void LoseFocus() override;
virtual void ApplySettings(vcl::RenderContext&) override; virtual void ApplySettings(vcl::RenderContext&) override;

View File

@ -126,13 +126,13 @@ public:
sal_uInt16& rArrangeIndex ); sal_uInt16& rArrangeIndex );
static Point ImplConvertToAbsPos(vcl::Window* pReference, const Point& rPos); static Point ImplConvertToAbsPos(vcl::Window* pReference, const Point& rPos);
static Rectangle ImplConvertToAbsPos(vcl::Window* pReference, const Rectangle& rRect); static Rectangle ImplConvertToAbsPos(vcl::Window* pReference, const Rectangle& rRect);
SAL_DLLPRIVATE void ImplEndPopupMode( FloatWinPopupEndFlags nFlags, const VclPtr<vcl::Window>& xFocusId = nullptr ); SAL_DLLPRIVATE void ImplEndPopupMode( FloatWinPopupEndFlags nFlags, const VclPtr<vcl::Window>& xFocusId );
SAL_DLLPRIVATE Rectangle& ImplGetItemEdgeClipRect(); SAL_DLLPRIVATE Rectangle& ImplGetItemEdgeClipRect();
SAL_DLLPRIVATE bool ImplIsInPrivatePopupMode() const { return mbInPopupMode; } SAL_DLLPRIVATE bool ImplIsInPrivatePopupMode() const { return mbInPopupMode; }
virtual void doDeferredInit(WinBits nBits) override; virtual void doDeferredInit(WinBits nBits) override;
public: public:
explicit FloatingWindow(vcl::Window* pParent, WinBits nStyle = WB_STDFLOATWIN); explicit FloatingWindow(vcl::Window* pParent, WinBits nStyle);
explicit FloatingWindow(vcl::Window* pParent, const OString& rID, const OUString& rUIXMLDescription, explicit FloatingWindow(vcl::Window* pParent, const OString& rID, const OUString& rUIXMLDescription,
const css::uno::Reference<css::frame::XFrame> &rFrame = css::uno::Reference<css::frame::XFrame>()); const css::uno::Reference<css::frame::XFrame> &rFrame = css::uno::Reference<css::frame::XFrame>());
virtual ~FloatingWindow() override; virtual ~FloatingWindow() override;

View File

@ -129,7 +129,7 @@ public:
*/ */
Rectangle GetBoundRect( OutputDevice& i_rReference, Rectangle* pHairline = nullptr ) const; Rectangle GetBoundRect( OutputDevice& i_rReference, Rectangle* pHairline = nullptr ) const;
void Adjust( short nLuminancePercent, short nContrastPercent = 0, void Adjust( short nLuminancePercent, short nContrastPercent,
short nChannelRPercent = 0, short nChannelGPercent = 0, short nChannelRPercent = 0, short nChannelGPercent = 0,
short nChannelBPercent = 0, double fGamma = 1.0, short nChannelBPercent = 0, double fGamma = 1.0,
bool bInvert = false, bool msoBrightness = false ); bool bInvert = false, bool msoBrightness = false );

View File

@ -180,7 +180,7 @@ public:
long nExtraData = 0L, long nExtraData = 0L,
OutputDevice* pFirstFrameOutDev = nullptr ); OutputDevice* pFirstFrameOutDev = nullptr );
void StopAnimation( OutputDevice* pOutputDevice, void StopAnimation( OutputDevice* pOutputDevice,
long nExtraData = 0L ); long nExtraData );
void SetAnimationNotifyHdl( const Link<Animation*,void>& rLink ); void SetAnimationNotifyHdl( const Link<Animation*,void>& rLink );
Link<Animation*,void> GetAnimationNotifyHdl() const; Link<Animation*,void> GetAnimationNotifyHdl() const;

View File

@ -190,7 +190,7 @@ public:
As some formats (Mtf's) do not have a unique header, it makes sense As some formats (Mtf's) do not have a unique header, it makes sense
to supply the file name (incl. ext.), so that the format can be to supply the file name (incl. ext.), so that the format can be
derived from the extension */ derived from the extension */
GraphicDescriptor( SvStream& rInStream, const OUString* pPath = nullptr ); GraphicDescriptor( SvStream& rInStream, const OUString* pPath );
virtual ~GraphicDescriptor(); virtual ~GraphicDescriptor();
@ -274,8 +274,8 @@ public:
bool IsExportPixelFormat( sal_uInt16 nFormat ); bool IsExportPixelFormat( sal_uInt16 nFormat );
sal_uInt16 ExportGraphic( const Graphic& rGraphic, const INetURLObject& rPath, sal_uInt16 ExportGraphic( const Graphic& rGraphic, const INetURLObject& rPath,
sal_uInt16 nFormat, sal_uInt16 nFormat,
const css::uno::Sequence< css::beans::PropertyValue >* pFilterData = nullptr ); const css::uno::Sequence< css::beans::PropertyValue >* pFilterData = nullptr );
sal_uInt16 ExportGraphic( const Graphic& rGraphic, const OUString& rPath, sal_uInt16 ExportGraphic( const Graphic& rGraphic, const OUString& rPath,
SvStream& rOStm, sal_uInt16 nFormat, SvStream& rOStm, sal_uInt16 nFormat,
const css::uno::Sequence< css::beans::PropertyValue >* pFilterData = nullptr ); const css::uno::Sequence< css::beans::PropertyValue >* pFilterData = nullptr );

View File

@ -43,7 +43,7 @@ private:
GetCanonicalTextColor( const StyleSettings& _rStyle ) const override; GetCanonicalTextColor( const StyleSettings& _rStyle ) const override;
public: public:
explicit GroupBox( vcl::Window* pParent, WinBits nStyle = 0 ); explicit GroupBox( vcl::Window* pParent, WinBits nStyle );
virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) override; virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) override;
virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, DrawFlags nFlags ) override; virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, DrawFlags nFlags ) override;

View File

@ -48,7 +48,7 @@ public:
Hatch(); Hatch();
Hatch( const Hatch& rHatch ); Hatch( const Hatch& rHatch );
Hatch( HatchStyle eStyle, const Color& rHatchColor, long nDistance, sal_uInt16 nAngle10 = 0 ); Hatch( HatchStyle eStyle, const Color& rHatchColor, long nDistance, sal_uInt16 nAngle10 );
~Hatch(); ~Hatch();
Hatch& operator=( const Hatch& rHatch ); Hatch& operator=( const Hatch& rHatch );

View File

@ -32,7 +32,7 @@ private:
::sal_Int16 mnScaleMode; ::sal_Int16 mnScaleMode;
public: public:
ImageControl( vcl::Window* pParent, WinBits nStyle = 0 ); ImageControl( vcl::Window* pParent, WinBits nStyle );
// set/get the scale mode. This is one of the css.awt.ImageScaleMode constants // set/get the scale mode. This is one of the css.awt.ImageScaleMode constants
void SetScaleMode( const ::sal_Int16 _nMode ); void SetScaleMode( const ::sal_Int16 _nMode );

View File

@ -658,7 +658,7 @@ private:
void create_owned_areas(); void create_owned_areas();
friend class VclPtr<MessageDialog>; friend class VclPtr<MessageDialog>;
MessageDialog(vcl::Window* pParent, WinBits nStyle = WB_MOVEABLE | WB_3DLOOK | WB_CLOSEABLE); MessageDialog(vcl::Window* pParent, WinBits nStyle);
public: public:
MessageDialog(vcl::Window* pParent, MessageDialog(vcl::Window* pParent,

View File

@ -284,7 +284,7 @@ public:
using ListBox::GetSavedValue; using ListBox::GetSavedValue;
using ListBox::IsValueChangedFromSaved; using ListBox::IsValueChangedFromSaved;
explicit MultiListBox( vcl::Window* pParent, WinBits nStyle = 0 ); explicit MultiListBox( vcl::Window* pParent, WinBits nStyle );
}; };

View File

@ -81,7 +81,7 @@ public:
class VCL_DLLPUBLIC MenuToggleButton : public MenuButton class VCL_DLLPUBLIC MenuToggleButton : public MenuButton
{ {
public: public:
explicit MenuToggleButton( vcl::Window* pParent, WinBits nStyle = 0 ); explicit MenuToggleButton( vcl::Window* pParent, WinBits nStyle );
virtual ~MenuToggleButton() override; virtual ~MenuToggleButton() override;
void SetActive( bool bSel ); void SetActive( bool bSel );

View File

@ -44,7 +44,7 @@ protected:
SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle ); SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle );
public: public:
explicit MoreButton( vcl::Window* pParent, WinBits nStyle = 0 ); explicit MoreButton( vcl::Window* pParent, WinBits nStyle );
virtual ~MoreButton() override; virtual ~MoreButton() override;
virtual void dispose() override; virtual void dispose() override;

View File

@ -33,7 +33,7 @@ public:
class VCL_DLLPUBLIC OpenGLWindow : public vcl::Window class VCL_DLLPUBLIC OpenGLWindow : public vcl::Window
{ {
public: public:
OpenGLWindow(vcl::Window* pParent, bool bInit = true); OpenGLWindow(vcl::Window* pParent, bool bInit);
virtual ~OpenGLWindow() override; virtual ~OpenGLWindow() override;
virtual void dispose() override; virtual void dispose() override;

View File

@ -1314,7 +1314,7 @@ private:
public: public:
SystemTextLayoutData GetSysTextLayoutData( const Point& rStartPt, const OUString& rStr, SystemTextLayoutData GetSysTextLayoutData( const Point& rStartPt, const OUString& rStr,
sal_Int32 nIndex, sal_Int32 nLen = -1, sal_Int32 nIndex, sal_Int32 nLen,
const long* pDXAry = nullptr ) const; const long* pDXAry = nullptr ) const;
SAL_DLLPRIVATE bool ImplIsAntiparallel() const ; SAL_DLLPRIVATE bool ImplIsAntiparallel() const ;

View File

@ -309,7 +309,7 @@ public:
@returns @returns
the outline item id of the new item the outline item id of the new item
*/ */
sal_Int32 CreateOutlineItem( sal_Int32 nParent, const OUString& rText = OUString(), sal_Int32 nDestID = -1 ); sal_Int32 CreateOutlineItem( sal_Int32 nParent, const OUString& rText, sal_Int32 nDestID = -1 );
/** Create a new note on a page /** Create a new note on a page

View File

@ -666,7 +666,7 @@ The following structure describes the permissions used in PDF security
Colors and other state information MUST Colors and other state information MUST
be set again or are undefined. be set again or are undefined.
*/ */
void NewPage( sal_Int32 nPageWidth, sal_Int32 nPageHeight = 0, Orientation eOrientation = Inherit ); void NewPage( sal_Int32 nPageWidth, sal_Int32 nPageHeight, Orientation eOrientation = Inherit );
/** Play a metafile like an outputdevice would do /** Play a metafile like an outputdevice would do
*/ */
struct PlayMetafileContext struct PlayMetafileContext
@ -870,7 +870,7 @@ The following structure describes the permissions used in PDF security
the destination id (to be used in SetLinkDest) or the destination id (to be used in SetLinkDest) or
-1 if page id does not exist -1 if page id does not exist
*/ */
sal_Int32 CreateNamedDest( const OUString& sDestName, const Rectangle& rRect, sal_Int32 nPageNr, DestAreaType eType = XYZ ); sal_Int32 CreateNamedDest( const OUString& sDestName, const Rectangle& rRect, sal_Int32 nPageNr, DestAreaType eType );
/** Create a new destination to be used in a link /** Create a new destination to be used in a link
@param rRect @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 the destination id (to be used in SetLinkDest) or
-1 if page id does not exist -1 if page id does not exist
*/ */
sal_Int32 CreateDest( const Rectangle& rRect, sal_Int32 nPageNr, DestAreaType eType = XYZ ); sal_Int32 CreateDest( const Rectangle& rRect, sal_Int32 nPageNr, DestAreaType eType );
/** Create a new link on a page /** Create a new link on a page
@param rRect @param rRect
@ -926,7 +926,7 @@ The following structure describes the permissions used in PDF security
@returns @returns
the internal destination Id. the internal destination Id.
*/ */
sal_Int32 RegisterDestReference( sal_Int32 nDestId, const Rectangle& rRect, sal_Int32 nPageNr, DestAreaType eType = XYZ ); sal_Int32 RegisterDestReference( sal_Int32 nDestId, const Rectangle& rRect, sal_Int32 nPageNr, DestAreaType eType );
/** Set the destination for a link /** Set the destination for a link
@ -993,7 +993,7 @@ The following structure describes the permissions used in PDF security
@returns @returns
the outline item id of the new item the outline item id of the new item
*/ */
sal_Int32 CreateOutlineItem( sal_Int32 nParent, const OUString& rText = OUString(), sal_Int32 nDestID = -1 ); sal_Int32 CreateOutlineItem( sal_Int32 nParent, const OUString& rText, sal_Int32 nDestID = -1 );
/** Set an outline item's parent /** Set an outline item's parent

View File

@ -46,9 +46,6 @@
************************************************************************/ ************************************************************************/
#define WB_STDPROGRESSBAR WB_BORDER
class VCL_DLLPUBLIC ProgressBar : public vcl::Window class VCL_DLLPUBLIC ProgressBar : public vcl::Window
{ {
private: private:
@ -66,7 +63,7 @@ private:
SAL_DLLPRIVATE void ImplDrawProgress(vcl::RenderContext& rRenderContext, sal_uInt16 nOldPerc, sal_uInt16 nNewPerc); SAL_DLLPRIVATE void ImplDrawProgress(vcl::RenderContext& rRenderContext, sal_uInt16 nOldPerc, sal_uInt16 nNewPerc);
public: public:
ProgressBar( vcl::Window* pParent, WinBits nWinBits = WB_STDPROGRESSBAR ); ProgressBar( vcl::Window* pParent, WinBits nWinBits );
virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) override; virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) override;
virtual void Resize() override; virtual void Resize() override;

View File

@ -683,7 +683,7 @@ public:
*/ */
static css::uno::Any setRangeControlOpt( const OUString& i_rID, const OUString& i_rTitle, const OUString& i_rHelpId, 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, const OUString& i_rProperty, sal_Int32 i_nValue, sal_Int32 i_nMinValue,
sal_Int32 i_nMaxValue = -2, const UIControlOptions& i_rControlOptions = UIControlOptions()); sal_Int32 i_nMaxValue, const UIControlOptions& i_rControlOptions = UIControlOptions());
/** Show a string field /** Show a string field

View File

@ -64,7 +64,7 @@ protected:
virtual sal_uInt64 UpdateMinPeriod( sal_uInt64 nMinPeriod, sal_uInt64 nTimeNow ) const = 0; virtual sal_uInt64 UpdateMinPeriod( sal_uInt64 nMinPeriod, sal_uInt64 nTimeNow ) const = 0;
public: public:
Scheduler( const sal_Char *pDebugName = nullptr ); Scheduler( const sal_Char *pDebugName );
Scheduler( const Scheduler& rScheduler ); Scheduler( const Scheduler& rScheduler );
virtual ~Scheduler(); virtual ~Scheduler();

View File

@ -79,7 +79,7 @@ private:
SAL_DLLPRIVATE void ImplUpdateLinkedField(); SAL_DLLPRIVATE void ImplUpdateLinkedField();
public: public:
Slider( vcl::Window* pParent, WinBits nStyle = WB_HORZ ); Slider( vcl::Window* pParent, WinBits nStyle);
virtual ~Slider() override; virtual ~Slider() override;
virtual void dispose() override; virtual void dispose() override;
virtual void MouseButtonDown( const MouseEvent& rMEvt ) override; virtual void MouseButtonDown( const MouseEvent& rMEvt ) override;

View File

@ -51,7 +51,7 @@ private:
DECL_DLLPRIVATE_LINK_TYPED( ImplTimeout, Timer*, void ); DECL_DLLPRIVATE_LINK_TYPED( ImplTimeout, Timer*, void );
public: public:
explicit SpinButton( vcl::Window* pParent, WinBits nStyle = 0 ); explicit SpinButton( vcl::Window* pParent, WinBits nStyle );
void Up(); void Up();
void Down(); void Down();

View File

@ -66,7 +66,7 @@ protected:
Rectangle * ImplFindPartRect( const Point& rPt ); Rectangle * ImplFindPartRect( const Point& rPt );
public: public:
explicit SpinField( vcl::Window* pParent, WinBits nWinStyle = 0 ); explicit SpinField( vcl::Window* pParent, WinBits nWinStyle );
explicit SpinField( vcl::Window* pParent, const ResId& ); explicit SpinField( vcl::Window* pParent, const ResId& );
virtual ~SpinField() override; virtual ~SpinField() override;
virtual void dispose() override; virtual void dispose() override;

View File

@ -145,17 +145,17 @@ public:
virtual bool PreNotify( NotifyEvent& rNEvt ) override; virtual bool PreNotify( NotifyEvent& rNEvt ) override;
void InsertItem( sal_uInt16 nId, vcl::Window* pWindow, long nSize, void InsertItem( sal_uInt16 nId, vcl::Window* pWindow, long nSize,
sal_uInt16 nPos, sal_uInt16 nIntoSetId = 0, sal_uInt16 nPos, sal_uInt16 nIntoSetId,
SplitWindowItemFlags nBits = SplitWindowItemFlags::NONE ); SplitWindowItemFlags nBits = SplitWindowItemFlags::NONE );
void InsertItem( sal_uInt16 nId, long nSize, void InsertItem( sal_uInt16 nId, long nSize,
sal_uInt16 nPos, sal_uInt16 nIntoSetId = 0, sal_uInt16 nPos, sal_uInt16 nIntoSetId,
SplitWindowItemFlags nBits = SplitWindowItemFlags::NONE ); SplitWindowItemFlags nBits = SplitWindowItemFlags::NONE );
void RemoveItem( sal_uInt16 nId ); void RemoveItem( sal_uInt16 nId );
void Clear(); void Clear();
void SplitItem( sal_uInt16 nId, long nNewSize, void SplitItem( sal_uInt16 nId, long nNewSize,
bool bPropSmall, bool bPropSmall,
bool bPropGreat = false ); bool bPropGreat );
void SetItemSize( sal_uInt16 nId, long nNewSize ); void SetItemSize( sal_uInt16 nId, long nNewSize );
long GetItemSize( sal_uInt16 nId ) const; long GetItemSize( sal_uInt16 nId ) const;
/** Set a range that limits the (variable part of the) size with an /** Set a range that limits the (variable part of the) size with an

View File

@ -37,7 +37,7 @@ private:
SystemChildWindow & operator= (const SystemChildWindow &) = delete; SystemChildWindow & operator= (const SystemChildWindow &) = delete;
public: public:
explicit SystemChildWindow( vcl::Window* pParent, WinBits nStyle = 0 ); explicit SystemChildWindow( vcl::Window* pParent, WinBits nStyle );
// create a SystemChildWindow using the given SystemWindowData // create a SystemChildWindow using the given SystemWindowData
explicit SystemChildWindow( vcl::Window* pParent, WinBits nStyle, SystemWindowData *pData, bool bShow = true ); explicit SystemChildWindow( vcl::Window* pParent, WinBits nStyle, SystemWindowData *pData, bool bShow = true );
virtual ~SystemChildWindow() override; virtual ~SystemChildWindow() override;

View File

@ -72,7 +72,7 @@ protected:
SAL_DLLPRIVATE void ImplShowFocus(); SAL_DLLPRIVATE void ImplShowFocus();
SAL_DLLPRIVATE void ImplDrawItem(vcl::RenderContext& rRenderContext, ImplTabItem* pItem, SAL_DLLPRIVATE void ImplDrawItem(vcl::RenderContext& rRenderContext, ImplTabItem* pItem,
const Rectangle& rCurRect, bool bFirstInGroup, const Rectangle& rCurRect, bool bFirstInGroup,
bool bLastInGroup = false, bool bIsCurrentItem = false); bool bLastInGroup, bool bIsCurrentItem = false);
SAL_DLLPRIVATE void ImplFreeLayoutData(); SAL_DLLPRIVATE void ImplFreeLayoutData();
SAL_DLLPRIVATE bool ImplHandleKeyEvent( const KeyEvent& rKeyEvent ); SAL_DLLPRIVATE bool ImplHandleKeyEvent( const KeyEvent& rKeyEvent );

View File

@ -39,7 +39,7 @@ private:
public: public:
TabDialog( vcl::Window* pParent, TabDialog( vcl::Window* pParent,
WinBits nStyle = WB_STDTABDIALOG ); WinBits nStyle );
TabDialog( vcl::Window* pParent, const OUString& rID, const OUString& rUIXMLDescription ); TabDialog( vcl::Window* pParent, const OUString& rID, const OUString& rUIXMLDescription );
virtual ~TabDialog() override; virtual ~TabDialog() override;
virtual void dispose() override; virtual void dispose() override;

View File

@ -301,7 +301,7 @@ public:
virtual void InsertItem( const OUString& rCommand, virtual void InsertItem( const OUString& rCommand,
const css::uno::Reference<css::frame::XFrame>& rFrame, const css::uno::Reference<css::frame::XFrame>& rFrame,
ToolBoxItemBits nBits, ToolBoxItemBits nBits,
const Size& rRequestedSize = Size(), const Size& rRequestedSize,
sal_uInt16 nPos = TOOLBOX_APPEND ); sal_uInt16 nPos = TOOLBOX_APPEND );
void InsertItem( sal_uInt16 nItemId, const Image& rImage, void InsertItem( sal_uInt16 nItemId, const Image& rImage,
ToolBoxItemBits nBits = ToolBoxItemBits::NONE, ToolBoxItemBits nBits = ToolBoxItemBits::NONE,

View File

@ -212,7 +212,7 @@ private:
void* pData; void* pData;
public: public:
VclWindowEvent( vcl::Window* pWin, sal_uLong n, void* pDat = nullptr ); VclWindowEvent( vcl::Window* pWin, sal_uLong n, void* pDat );
virtual ~VclWindowEvent() override; virtual ~VclWindowEvent() override;
vcl::Window* GetWindow() const { return pWindow; } vcl::Window* GetWindow() const { return pWindow; }

View File

@ -59,7 +59,7 @@ protected:
virtual void ApplySettings(vcl::RenderContext& rRenderContext) override; virtual void ApplySettings(vcl::RenderContext& rRenderContext) override;
public: public:
VclMultiLineEdit( vcl::Window* pParent, VclMultiLineEdit( vcl::Window* pParent,
WinBits nWinStyle = WB_LEFT | WB_BORDER ); WinBits nWinStyle );
virtual ~VclMultiLineEdit() override; virtual ~VclMultiLineEdit() override;
virtual void dispose() override; virtual void dispose() override;

View File

@ -1204,7 +1204,7 @@ public:
bool HandleScrollCommand( const CommandEvent& rCmd, bool HandleScrollCommand( const CommandEvent& rCmd,
ScrollBar* pHScrl, ScrollBar* pHScrl,
ScrollBar* pVScrl = nullptr ); ScrollBar* pVScrl );
void SaveBackground( const Point& rPos, const Size& rSize, void SaveBackground( const Point& rPos, const Size& rSize,
const Point& rDestOff, VirtualDevice& rSaveDevice ); const Point& rDestOff, VirtualDevice& rSaveDevice );

View File

@ -55,7 +55,7 @@ struct WMF_EXTERNALHEADER
} }
}; };
bool ConvertWMFToGDIMetaFile( SvStream & rStreamWMF, GDIMetaFile & rGDIMetaFile, FilterConfigItem* pConfigItem, WMF_EXTERNALHEADER *pExtHeader = nullptr ); bool ConvertWMFToGDIMetaFile( SvStream & rStreamWMF, GDIMetaFile & rGDIMetaFile, FilterConfigItem* pConfigItem, WMF_EXTERNALHEADER *pExtHeader );
VCL_DLLPUBLIC bool ReadWindowMetafile( SvStream& rStream, GDIMetaFile& rMTF ); VCL_DLLPUBLIC bool ReadWindowMetafile( SvStream& rStream, GDIMetaFile& rMTF );

View File

@ -119,9 +119,9 @@ private:
public: public:
ImplBorderWindow( vcl::Window* pParent, ImplBorderWindow( vcl::Window* pParent,
SystemParentData* pParentData, SystemParentData* pParentData,
WinBits nStyle = 0, WinBits nStyle,
BorderWindowStyle nTypeStyle = BorderWindowStyle::NONE ); BorderWindowStyle nTypeStyle = BorderWindowStyle::NONE );
ImplBorderWindow( vcl::Window* pParent, WinBits nStyle = 0, ImplBorderWindow( vcl::Window* pParent, WinBits nStyle,
BorderWindowStyle nTypeStyle = BorderWindowStyle::NONE ); BorderWindowStyle nTypeStyle = BorderWindowStyle::NONE );
virtual ~ImplBorderWindow() override; virtual ~ImplBorderWindow() override;
virtual void dispose() override; virtual void dispose() override;

View File

@ -70,7 +70,7 @@ class VCL_DLLPUBLIC SvpSalInstance : public SalGenericInstance
ImplSVEvent* m_pData; ImplSVEvent* m_pData;
SalEvent m_nEvent; SalEvent m_nEvent;
SalUserEvent( const SalFrame* pFrame, ImplSVEvent* pData, SalEvent nEvent = SalEvent::UserEvent ) SalUserEvent( const SalFrame* pFrame, ImplSVEvent* pData, SalEvent nEvent )
: m_pFrame( pFrame ), : m_pFrame( pFrame ),
m_pData( pData ), m_pData( pData ),
m_nEvent( nEvent ) m_nEvent( nEvent )

View File

@ -530,7 +530,7 @@ protected:
virtual void FillLayoutData() const override; virtual void FillLayoutData() const override;
public: public:
ImplWin( vcl::Window* pParent, WinBits nWinStyle = 0 ); ImplWin( vcl::Window* pParent, WinBits nWinStyle );
virtual void MouseButtonDown( const MouseEvent& rMEvt ) override; virtual void MouseButtonDown( const MouseEvent& rMEvt ) override;
virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) override; virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) override;
@ -576,7 +576,7 @@ private:
Link<void*,void> maMBDownHdl; Link<void*,void> maMBDownHdl;
public: public:
ImplBtn( vcl::Window* pParent, WinBits nWinStyle = 0 ); ImplBtn( vcl::Window* pParent, WinBits nWinStyle );
virtual void MouseButtonDown( const MouseEvent& rMEvt ) override; virtual void MouseButtonDown( const MouseEvent& rMEvt ) override;
void MBDown(); void MBDown();

View File

@ -41,10 +41,10 @@ struct SalMenuButtonItem
{ {
sal_uInt16 mnId; sal_uInt16 mnId;
Image maImage; Image maImage;
OUString maToolTipText; OUString maToolTipText;
SalMenuButtonItem() : mnId( 0 ) {} SalMenuButtonItem() : mnId( 0 ) {}
SalMenuButtonItem( sal_uInt16 i_nId, const Image& rImg, const OUString& i_rTTText = OUString() ) SalMenuButtonItem( sal_uInt16 i_nId, const Image& rImg, const OUString& i_rTTText )
: mnId( i_nId ), maImage( rImg ), maToolTipText( i_rTTText ) {} : mnId( i_nId ), maImage( rImg ), maToolTipText( i_rTTText ) {}
}; };

View File

@ -40,7 +40,7 @@ class GtkSalObject : public SalObject
static gboolean signalFocus( GtkWidget*, GdkEventFocus*, gpointer ); static gboolean signalFocus( GtkWidget*, GdkEventFocus*, gpointer );
static void signalDestroy( GtkWidget*, gpointer ); static void signalDestroy( GtkWidget*, gpointer );
public: public:
GtkSalObject( GtkSalFrame* pParent, bool bShow = true ); GtkSalObject( GtkSalFrame* pParent, bool bShow );
virtual ~GtkSalObject() override; virtual ~GtkSalObject() override;
// override all pure virtual methods // override all pure virtual methods

View File

@ -43,7 +43,7 @@ class JPEGWriter
public: public:
JPEGWriter( SvStream& rStream, JPEGWriter( SvStream& rStream,
const css::uno::Sequence< css::beans::PropertyValue >* pFilterData, const css::uno::Sequence< css::beans::PropertyValue >* pFilterData,
bool* pExportWasGrey = nullptr ); bool* pExportWasGrey );
virtual ~JPEGWriter() {}; virtual ~JPEGWriter() {};

View File

@ -366,7 +366,7 @@ struct WinMtfLineStyle : GDIObj
, bTransparent(bTrans) , bTransparent(bTrans)
{} {}
WinMtfLineStyle( const Color& rColor, const LineInfo& rStyle, bool bTrans = false) WinMtfLineStyle( const Color& rColor, const LineInfo& rStyle, bool bTrans)
: aLineColor (rColor) : aLineColor (rColor)
, aLineInfo (rStyle) , aLineInfo (rStyle)
, bTransparent(bTrans) , bTransparent(bTrans)
@ -673,7 +673,7 @@ protected:
WinMtf( WinMtf(
GDIMetaFile& rGDIMetaFile, GDIMetaFile& rGDIMetaFile,
SvStream& rStreamWMF, SvStream& rStreamWMF,
FilterConfigItem* pConfigItem = nullptr FilterConfigItem* pConfigItem
); );
~WinMtf(); ~WinMtf();
}; };
@ -742,7 +742,7 @@ private:
public: public:
WMFReader(SvStream& rStreamWMF, GDIMetaFile& rGDIMetaFile, WMFReader(SvStream& rStreamWMF, GDIMetaFile& rGDIMetaFile,
FilterConfigItem* pConfigItem = nullptr, FilterConfigItem* pConfigItem,
WMF_EXTERNALHEADER* pExtHeader = nullptr); WMF_EXTERNALHEADER* pExtHeader = nullptr);
// read WMF file from stream and fill the GDIMetaFile // read WMF file from stream and fill the GDIMetaFile

View File

@ -1681,7 +1681,7 @@ const char* CffSubsetterContext::getGlyphName( int nGlyphIndex)
class Type1Emitter class Type1Emitter
{ {
public: public:
explicit Type1Emitter( FILE* pOutFile, bool bPfbSubset = true); explicit Type1Emitter( FILE* pOutFile, bool bPfbSubset);
~Type1Emitter(); ~Type1Emitter();
void setSubsetName( const char* ); void setSubsetName( const char* );

View File

@ -48,7 +48,7 @@ class PNGWriterImpl
public: public:
PNGWriterImpl(const BitmapEx& BmpEx, PNGWriterImpl(const BitmapEx& BmpEx,
const css::uno::Sequence<css::beans::PropertyValue>* pFilterData = nullptr); const css::uno::Sequence<css::beans::PropertyValue>* pFilterData);
bool Write(SvStream& rOutStream); bool Write(SvStream& rOutStream);

View File

@ -33,7 +33,7 @@ namespace x11 {
SelectionManager& m_rManager; SelectionManager& m_rManager;
Atom m_aSelection; Atom m_aSelection;
public: public:
X11Transferable( SelectionManager& rManager, Atom selection = None ); X11Transferable( SelectionManager& rManager, Atom selection );
virtual ~X11Transferable() override; virtual ~X11Transferable() override;
/* /*

View File

@ -64,7 +64,7 @@ class RTSDialog : public TabDialog
// helper functions // helper functions
void insertAllPPDValues( ListBox&, const psp::PPDParser*, const psp::PPDKey* ); void insertAllPPDValues( ListBox&, const psp::PPDParser*, const psp::PPDKey* );
public: public:
RTSDialog(const ::psp::PrinterInfo& rJobData, vcl::Window* pParent = nullptr); RTSDialog(const ::psp::PrinterInfo& rJobData, vcl::Window* pParent);
virtual ~RTSDialog() override; virtual ~RTSDialog() override;
virtual void dispose() override; virtual void dispose() override;