diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-26 09:36:26 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-02-26 08:24:32 +0000 |
commit | 911ae0aeca443fb4b5e400ae0f939567b580e443 (patch) | |
tree | 1b7ef72f8f4c50c9ab7a552743a95b329912a0bc /include | |
parent | 63e2aec922ec8c0a9011b98dbfd3dac295f473af (diff) |
loplugin:unuseddefaultparams in /include/vcl
Change-Id: I36daccd90bfa6ba0ee8b9e76bff2bd8494155a04
Reviewed-on: https://gerrit.libreoffice.org/22710
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/graphicfilter.hxx | 2 | ||||
-rw-r--r-- | include/vcl/imagerepository.hxx | 6 | ||||
-rw-r--r-- | include/vcl/menu.hxx | 11 | ||||
-rw-r--r-- | include/vcl/outdev.hxx | 6 | ||||
-rw-r--r-- | include/vcl/pdfextoutdevdata.hxx | 10 | ||||
-rw-r--r-- | include/vcl/pdfwriter.hxx | 8 | ||||
-rw-r--r-- | include/vcl/ppdparser.hxx | 6 | ||||
-rw-r--r-- | include/vcl/print.hxx | 4 | ||||
-rw-r--r-- | include/vcl/scrbar.hxx | 3 | ||||
-rw-r--r-- | include/vcl/sound.hxx | 2 | ||||
-rw-r--r-- | include/vcl/splitwin.hxx | 8 | ||||
-rw-r--r-- | include/vcl/strhelper.hxx | 2 | ||||
-rw-r--r-- | include/vcl/svapp.hxx | 4 | ||||
-rw-r--r-- | include/vcl/syschild.hxx | 4 | ||||
-rw-r--r-- | include/vcl/tabctrl.hxx | 2 | ||||
-rw-r--r-- | include/vcl/taskpanelist.hxx | 2 | ||||
-rw-r--r-- | include/vcl/texteng.hxx | 16 | ||||
-rw-r--r-- | include/vcl/textview.hxx | 2 | ||||
-rw-r--r-- | include/vcl/toolbox.hxx | 11 | ||||
-rw-r--r-- | include/vcl/virdev.hxx | 4 | ||||
-rw-r--r-- | include/vcl/window.hxx | 6 | ||||
-rw-r--r-- | include/vcl/wmf.hxx | 2 |
22 files changed, 47 insertions, 74 deletions
diff --git a/include/vcl/graphicfilter.hxx b/include/vcl/graphicfilter.hxx index 40ea0173f537..4dc7ed5a916b 100644 --- a/include/vcl/graphicfilter.hxx +++ b/include/vcl/graphicfilter.hxx @@ -269,7 +269,7 @@ public: OUString GetExportFormatName( sal_uInt16 nFormat ); OUString GetExportFormatMediaType( sal_uInt16 nFormat ); OUString GetExportFormatShortName( sal_uInt16 nFormat ); - OUString GetExportWildcard( sal_uInt16 nFormat, sal_Int32 nEntry = 0 ); + OUString GetExportWildcard( sal_uInt16 nFormat ); bool IsExportPixelFormat( sal_uInt16 nFormat ); sal_uInt16 ExportGraphic( const Graphic& rGraphic, const INetURLObject& rPath, diff --git a/include/vcl/imagerepository.hxx b/include/vcl/imagerepository.hxx index c7cbbefe1cd5..5983825f4236 100644 --- a/include/vcl/imagerepository.hxx +++ b/include/vcl/imagerepository.hxx @@ -43,17 +43,13 @@ namespace vcl will take the image upon successful return. @param bSearchLanguageDependent determines whether a language-dependent image is to be searched. - @param loadMissing - if set to true, then load a default image if no image can be found, - otherwise don't load anything @return whether or not the image could be loaded successfully. */ static bool loadImage( const OUString& _rName, BitmapEx& _out_rImage, - bool bSearchLanguageDependent, - bool loadMissing = false + bool bSearchLanguageDependent ); static bool loadDefaultImage( diff --git a/include/vcl/menu.hxx b/include/vcl/menu.hxx index 2ce8ba4ad610..f8d44e0c1567 100644 --- a/include/vcl/menu.hxx +++ b/include/vcl/menu.hxx @@ -248,15 +248,14 @@ public: MenuItemBits nItemBits = MenuItemBits::NONE, const OString &rIdent = OString(), sal_uInt16 nPos = MENU_APPEND); - void InsertItem(const ResId& rResId, sal_uInt16 nPos = MENU_APPEND ); + void InsertItem(const ResId& rResId); void InsertItem(const OUString& rCommand, const css::uno::Reference<css::frame::XFrame>& rFrame, MenuItemBits nBits = MenuItemBits::NONE, - const OString &rIdent = OString(), - sal_uInt16 nPos = MENU_APPEND); + const OString &rIdent = OString()); void InsertSeparator(const OString &rIdent = OString(), sal_uInt16 nPos = MENU_APPEND); void RemoveItem( sal_uInt16 nPos ); - void CopyItem(const Menu& rMenu, sal_uInt16 nPos, sal_uInt16 nNewPos = MENU_APPEND ); + void CopyItem(const Menu& rMenu, sal_uInt16 nPos ); void Clear(); void CreateAutoMnemonics(); @@ -308,7 +307,7 @@ public: virtual bool IsMenuBar() const = 0; void RemoveDisabledEntries( bool bCheckPopups = true, bool bRemoveEmptyPopups = false ); - bool HasValidEntries( bool bCheckPopups = true ); + bool HasValidEntries(); void UpdateNativeMenu(); @@ -533,7 +532,7 @@ public: sal_uInt16 Execute( vcl::Window* pWindow, const Rectangle& rRect, PopupMenuFlags nFlags = PopupMenuFlags::NONE ); // Fuer das TestTool - void EndExecute( sal_uInt16 nSelect = 0 ); + void EndExecute(); virtual void SelectItem(sal_uInt16 nId) override; void SetSelectedEntry( sal_uInt16 nId ); // for use by native submenu only diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index b0527b071be5..cb9e0da762d3 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -1131,8 +1131,7 @@ public: DrawTextFlags nStyle = DrawTextFlags::EndEllipsis ) const; long GetCtrlTextWidth( const OUString& rStr, sal_Int32 nIndex = 0, - sal_Int32 nLen = -1, - DrawTextFlags nStyle = DrawTextFlags::Mnemonic ) const; + sal_Int32 nLen = -1 ) const; static OUString GetNonMnemonicString( const OUString& rStr, sal_Int32& rMnemonicPos ); @@ -1198,8 +1197,7 @@ public: bool GetCaretPositions( const OUString&, long* pCaretXArray, sal_Int32 nIndex, sal_Int32 nLen, - long* pDXAry = nullptr, long nWidth = 0, - bool bCellBreaking = true ) const; + long* pDXAry = nullptr, long nWidth = 0 ) const; void DrawStretchText( const Point& rStartPt, sal_uLong nWidth, const OUString& rStr, sal_Int32 nIndex = 0, sal_Int32 nLen = -1); diff --git a/include/vcl/pdfextoutdevdata.hxx b/include/vcl/pdfextoutdevdata.hxx index 3c3d49a88522..6fcb45eed90c 100644 --- a/include/vcl/pdfextoutdevdata.hxx +++ b/include/vcl/pdfextoutdevdata.hxx @@ -479,11 +479,8 @@ public: @param nMilliSec the duration of the transitional effect in milliseconds; set 0 to disable transitional effects - - @param nPageNr - the page number to apply the effect to; -1 denotes the current page */ - void SetPageTransition( PDFWriter::PageTransition eType, sal_uInt32 nMilliSec, sal_Int32 nPageNr = -1 ); + void SetPageTransition( PDFWriter::PageTransition eType, sal_uInt32 nMilliSec ); /** create a new form control @@ -493,11 +490,8 @@ public: @param rControlType a descendant of AnyWidget determining the control's properties - - @param nPageNr - the page number to apply the effect to; -1 denotes the current page */ - void CreateControl( const PDFWriter::AnyWidget& rControlType, sal_Int32 nPageNr = -1 ); + void CreateControl( const PDFWriter::AnyWidget& rControlType ); }; } diff --git a/include/vcl/pdfwriter.hxx b/include/vcl/pdfwriter.hxx index 6b8e43f0eb2f..6f859bdf095c 100644 --- a/include/vcl/pdfwriter.hxx +++ b/include/vcl/pdfwriter.hxx @@ -765,8 +765,7 @@ The following structure describes the permissions used in PDF security void DrawTextLine( const Point& rPos, long nWidth, FontStrikeout eStrikeout, FontLineStyle eUnderline, - FontLineStyle eOverline, - bool bUnderlineAbove = false ); + FontLineStyle eOverline ); void DrawTextArray( const Point& rStartPt, const OUString& rStr, const long* pDXAry, sal_Int32 nIndex, @@ -1236,13 +1235,10 @@ The following structure describes the permissions used in PDF security @param rControlType a descendant of AnyWidget determining the control's properties - @param nPageNr - the page number to apply the effect to; -1 denotes the current page - @returns the new control's id for reference purposes */ - sal_Int32 CreateControl( const AnyWidget& rControlType, sal_Int32 nPageNr = -1 ); + sal_Int32 CreateControl( const AnyWidget& rControlType ); /** Inserts an additional stream to the PDF file diff --git a/include/vcl/ppdparser.hxx b/include/vcl/ppdparser.hxx index dbbed2dff45c..418f4b07c74c 100644 --- a/include/vcl/ppdparser.hxx +++ b/include/vcl/ppdparser.hxx @@ -231,11 +231,9 @@ public: static void getResolutionFromString( const OUString&, int&, int& ); // helper function - OUString translateKey( const OUString& i_rKey, - const css::lang::Locale& i_rLocale = css::lang::Locale() ) const; + OUString translateKey( const OUString& i_rKey ) const; OUString translateOption( const OUString& i_rKey, - const OUString& i_rOption, - const css::lang::Locale& i_rLocale = css::lang::Locale() ) const; + const OUString& i_rOption ) const; }; diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx index 423b4e0b45b1..b594cc7c76c1 100644 --- a/include/vcl/print.hxx +++ b/include/vcl/print.hxx @@ -605,10 +605,8 @@ public: /** Process a new set of properties merges changed properties and returns "true" if any occurred - if the optional output set is not NULL then the names of the changed properties are returned */ - bool processProperties( const css::uno::Sequence< css::beans::PropertyValue >& i_rNewProp, - std::set< OUString >* o_pChangeProp = nullptr ); + bool processProperties( const css::uno::Sequence< css::beans::PropertyValue >& i_rNewProp ); /** Append to a sequence of property values the ui property sequence passed at creation diff --git a/include/vcl/scrbar.hxx b/include/vcl/scrbar.hxx index b4fa3e79c326..81e4d508adf9 100644 --- a/include/vcl/scrbar.hxx +++ b/include/vcl/scrbar.hxx @@ -107,8 +107,7 @@ public: long DoScroll( long nNewPos ); long DoScrollAction( ScrollType eScrollType ); - void EnableDrag( bool bEnable = true ) - { mbFullDrag = bEnable; } + void EnableDrag() { mbFullDrag = true; } void SetRangeMin( long nNewRange ); long GetRangeMin() const { return mnMinRange; } diff --git a/include/vcl/sound.hxx b/include/vcl/sound.hxx index 868365efbae0..5cc9190118f8 100644 --- a/include/vcl/sound.hxx +++ b/include/vcl/sound.hxx @@ -28,7 +28,7 @@ namespace vcl { class Window; } class VCL_DLLPUBLIC Sound { public: - static void Beep( vcl::Window* pWindow = nullptr ); + static void Beep(); }; #endif // INCLUDED_VCL_SOUND_HXX diff --git a/include/vcl/splitwin.hxx b/include/vcl/splitwin.hxx index 7bbe0837f42e..5bb540b86c9d 100644 --- a/include/vcl/splitwin.hxx +++ b/include/vcl/splitwin.hxx @@ -151,7 +151,7 @@ public: void InsertItem( sal_uInt16 nId, long nSize, sal_uInt16 nPos = SPLITWINDOW_APPEND, sal_uInt16 nIntoSetId = 0, SplitWindowItemFlags nBits = SplitWindowItemFlags::NONE ); - void RemoveItem( sal_uInt16 nId, bool bHide = true ); + void RemoveItem( sal_uInt16 nId ); void Clear(); void SplitItem( sal_uInt16 nId, long nNewSize, @@ -175,7 +175,7 @@ public: sal_uInt16 GetItemId( vcl::Window* pWindow ) const; sal_uInt16 GetItemId( const Point& rPos ) const; sal_uInt16 GetItemPos( sal_uInt16 nId, sal_uInt16 nSetId = 0 ) const; - sal_uInt16 GetItemId( sal_uInt16 nPos, sal_uInt16 nSetId = 0 ) const; + sal_uInt16 GetItemId( sal_uInt16 nPos ) const; sal_uInt16 GetItemCount( sal_uInt16 nSetId = 0 ) const; bool IsItemValid( sal_uInt16 nId ) const; @@ -189,8 +189,8 @@ public: void ShowAutoHideButton( bool bShow = true ); bool IsAutoHideButtonVisible() const { return mbAutoHide; } - void ShowFadeInHideButton( bool bShow = true ); - void ShowFadeOutButton( bool bShow = true ); + void ShowFadeInHideButton(); + void ShowFadeOutButton(); long GetFadeInSize() const; bool IsFadeNoButtonMode() const { return mbFadeNoButtonMode; } diff --git a/include/vcl/strhelper.hxx b/include/vcl/strhelper.hxx index d8b9cff0baec..5f3c21647dbd 100644 --- a/include/vcl/strhelper.hxx +++ b/include/vcl/strhelper.hxx @@ -36,7 +36,7 @@ namespace psp // returns number of tokens (zero if empty or whitespace only) VCL_DLLPUBLIC OUString WhitespaceToSpace( const OUString&, bool bProtect = true ); - VCL_DLLPUBLIC OString WhitespaceToSpace(const OString&, bool bProtect = true); + VCL_DLLPUBLIC OString WhitespaceToSpace(const OString&); // returns a string with multiple adjacent occurrences of whitespace // converted to a single space. if bProtect is sal_True (nonzero), then // doublequote, singlequote and singleleftquote protect their respective diff --git a/include/vcl/svapp.hxx b/include/vcl/svapp.hxx index c4e06cbf5d8d..608a1b97dc4a 100644 --- a/include/vcl/svapp.hxx +++ b/include/vcl/svapp.hxx @@ -1143,11 +1143,9 @@ public: /** Turns on "auto-help" (hover mouse above UI element and a tooltip with an explanation pops up. - @param bEnabled Enables/disables auto-help. - @see EnableAutoHelpId */ - static void EnableAutoHelpId( bool bEnabled = true ); + static void EnableAutoHelpId(); /** Determines if auto-help is enabled or disabled. diff --git a/include/vcl/syschild.hxx b/include/vcl/syschild.hxx index a0f80ab7a85a..a0dcdf9aaff0 100644 --- a/include/vcl/syschild.hxx +++ b/include/vcl/syschild.hxx @@ -51,9 +51,7 @@ public: void EnableEraseBackground( bool bEnable = true ); void SetForwardKey( bool bEnable ); // return the platform specific handle/id of this window; - // in case the flag bUseJava is set, a java compatible overlay window - // is created on which other java windows can be created (plugin interface) - sal_IntPtr GetParentWindowHandle( bool bUseJava = false ); + sal_IntPtr GetParentWindowHandle(); }; #endif // INCLUDED_VCL_SYSCHILD_HXX diff --git a/include/vcl/tabctrl.hxx b/include/vcl/tabctrl.hxx index b69c8ad2cc3e..314477ed6149 100644 --- a/include/vcl/tabctrl.hxx +++ b/include/vcl/tabctrl.hxx @@ -73,7 +73,7 @@ private: SAL_DLLPRIVATE void ImplDrawItem(vcl::RenderContext& rRenderContext, ImplTabItem* pItem, const Rectangle& rCurRect, bool bLayout = false, bool bFirstInGroup = false, bool bLastInGroup = false, bool bIsCurrentItem = false); - SAL_DLLPRIVATE void ImplPaint(vcl::RenderContext& rRenderContext, const Rectangle& rRect, bool bLayout = false); + SAL_DLLPRIVATE void ImplPaint(vcl::RenderContext& rRenderContext, const Rectangle& rRect); SAL_DLLPRIVATE void ImplFreeLayoutData(); SAL_DLLPRIVATE bool ImplHandleKeyEvent( const KeyEvent& rKeyEvent ); diff --git a/include/vcl/taskpanelist.hxx b/include/vcl/taskpanelist.hxx index 738f2b81f3a9..fd043651a4f3 100644 --- a/include/vcl/taskpanelist.hxx +++ b/include/vcl/taskpanelist.hxx @@ -29,7 +29,7 @@ class VCL_DLLPUBLIC TaskPaneList { ::std::vector< VclPtr<vcl::Window> > mTaskPanes; vcl::Window *FindNextFloat( vcl::Window *pWindow, bool bForward = true ); - vcl::Window *FindNextSplitter( vcl::Window *pWindow, bool bForward = true ); + vcl::Window *FindNextSplitter( vcl::Window *pWindow ); public: bool IsInList( vcl::Window *pWindow ); diff --git a/include/vcl/texteng.hxx b/include/vcl/texteng.hxx index c268b7e6ce49..ec77f0632871 100644 --- a/include/vcl/texteng.hxx +++ b/include/vcl/texteng.hxx @@ -148,9 +148,9 @@ protected: TextPaM ImpDeleteText( const TextSelection& rSel ); TextPaM ImpInsertText( const TextSelection& rSel, sal_Unicode c, bool bOverwrite = false ); TextPaM ImpInsertText( const TextSelection& rSel, const OUString& rText ); - TextPaM ImpInsertParaBreak( const TextSelection& rTextSelection, bool bKeepEndingAttribs = true ); + TextPaM ImpInsertParaBreak( const TextSelection& rTextSelection ); TextPaM ImpInsertParaBreak( const TextPaM& rPaM, bool bKeepEndingAttribs = true ); - void ImpRemoveChars( const TextPaM& rPaM, sal_Int32 nChars, SfxUndoAction* pCurUndo = nullptr ); + void ImpRemoveChars( const TextPaM& rPaM, sal_Int32 nChars ); TextPaM ImpConnectParagraphs( sal_uInt32 nLeft, sal_uInt32 nRight ); void ImpRemoveParagraph( sal_uInt32 nPara ); void ImpInitWritingDirections( sal_uInt32 nPara ); @@ -201,14 +201,14 @@ protected: long ImpGetPortionXOffset( sal_uInt32 nPara, TextLine* pLine, sal_uInt16 nTextPortion ); long ImpGetXPos( sal_uInt32 nPara, TextLine* pLine, sal_Int32 nIndex, bool bPreferPortionStart = false ); long ImpGetOutputOffset( sal_uInt32 nPara, TextLine* pLine, sal_Int32 nIndex, sal_Int32 nIndex2 ); - sal_uInt8 ImpGetRightToLeft( sal_uInt32 nPara, sal_Int32 nPos, sal_Int32* pStart = nullptr, sal_Int32* pEnd = nullptr ); - static void ImpInitLayoutMode( OutputDevice* pOutDev, bool bDrawingR2LPortion = false ); + sal_uInt8 ImpGetRightToLeft( sal_uInt32 nPara, sal_Int32 nPos, sal_Int32* pStart = nullptr ); + static void ImpInitLayoutMode( OutputDevice* pOutDev ); TxtAlign ImpGetAlign() const; long CalcTextHeight(); long CalcParaHeight( sal_uInt32 nParagraph ) const; long CalcTextWidth( sal_uInt32 nPara ); - long CalcTextWidth( sal_uInt32 nPara, sal_Int32 nPortionStart, sal_Int32 nPortionLen, const vcl::Font* pFont = nullptr ); + long CalcTextWidth( sal_uInt32 nPara, sal_Int32 nPortionStart, sal_Int32 nPortionLen); Range GetInvalidYOffsets( sal_uInt32 nPortion ); // for Undo/Redo @@ -230,8 +230,8 @@ public: OUString GetTextLines( LineEnd aSeparator = LINEEND_LF ) const; void ReplaceText(const TextSelection& rSel, const OUString& rText); - sal_Int32 GetTextLen( LineEnd aSeparator = LINEEND_LF ) const; - sal_Int32 GetTextLen( const TextSelection& rSel, LineEnd aSeparator = LINEEND_LF ) const; + sal_Int32 GetTextLen() const; + sal_Int32 GetTextLen( const TextSelection& rSel ) const; void SetFont( const vcl::Font& rFont ); const vcl::Font& GetFont() const { return maFont; } @@ -299,7 +299,7 @@ public: void RemoveAttribs( sal_uInt32 nPara, sal_uInt16 nWhich, bool bIdleFormatAndUpdate ); void RemoveAttrib( sal_uInt32 nPara, const TextCharAttrib& rAttrib ); - void RemoveAttribs( sal_uInt32 nPara, bool bIdleFormatAndUpdate = true ); + void RemoveAttribs( sal_uInt32 nPara ); void SetAttrib( const TextAttrib& rAttr, sal_uInt32 nPara, sal_Int32 nStart, sal_Int32 nEnd, bool bIdleFormatAndUpdate = true ); TxtAlign GetTextAlign() const { return meAlign; } diff --git a/include/vcl/textview.hxx b/include/vcl/textview.hxx index e5bc8c0e93e1..e4507d439868 100644 --- a/include/vcl/textview.hxx +++ b/include/vcl/textview.hxx @@ -122,7 +122,7 @@ public: OUString GetSelected( LineEnd aSeparator ); void DeleteSelected(); - void InsertText( const OUString& rNew, bool bSelect = false ); + void InsertText( const OUString& rNew ); bool KeyInput( const KeyEvent& rKeyEvent ); void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect); diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx index 11958cd1f7e0..18019e557326 100644 --- a/include/vcl/toolbox.hxx +++ b/include/vcl/toolbox.hxx @@ -284,8 +284,7 @@ public: virtual void Resizing( Size& rSize ) override; virtual Size GetOptimalSize() const override; - void InsertItem( const ResId& rResId, - sal_uInt16 nPos = TOOLBOX_APPEND ); + void InsertItem( const ResId& rResId ); /// Insert a command (like '.uno:Save'). virtual void InsertItem( const OUString& rCommand, const css::uno::Reference<css::frame::XFrame>& rFrame, @@ -305,11 +304,11 @@ public: void InsertWindow( sal_uInt16 nItemId, vcl::Window* pWindow, ToolBoxItemBits nBits = ToolBoxItemBits::NONE, sal_uInt16 nPos = TOOLBOX_APPEND ); - void InsertSpace( sal_uInt16 nPos = TOOLBOX_APPEND ); + void InsertSpace(); void InsertSeparator( sal_uInt16 nPos = TOOLBOX_APPEND, sal_uInt16 nPixSize = 0 ); void InsertBreak( sal_uInt16 nPos = TOOLBOX_APPEND ); void RemoveItem( sal_uInt16 nPos ); - void CopyItem( const ToolBox& rToolBox, sal_uInt16 nItemId, sal_uInt16 nNewPos = TOOLBOX_APPEND ); + void CopyItem( const ToolBox& rToolBox, sal_uInt16 nItemId ); void Clear(); const ImageList& GetImageList() const { return maImageList; } @@ -376,7 +375,7 @@ public: void StartSelection(); void EndSelection(); - void SetItemDown( sal_uInt16 nItemId, bool bDown, bool bRelease = true ); + void SetItemDown( sal_uInt16 nItemId, bool bDown ); void SetItemState( sal_uInt16 nItemId, TriState eState ); TriState GetItemState( sal_uInt16 nItemId ) const; @@ -387,7 +386,7 @@ public: void EnableItem( sal_uInt16 nItemId, bool bEnable = true ); bool IsItemEnabled( sal_uInt16 nItemId ) const; - void TriggerItem( sal_uInt16 nItemId, bool bShift = false, bool bCtrl = false ); + void TriggerItem( sal_uInt16 nItemId, bool bShift = false ); /// Shows or hides items. void ShowItem(sal_uInt16 nItemId, bool bVisible = true); diff --git a/include/vcl/virdev.hxx b/include/vcl/virdev.hxx index b9b5bba0e474..084ed9b97a1e 100644 --- a/include/vcl/virdev.hxx +++ b/include/vcl/virdev.hxx @@ -128,8 +128,8 @@ public: const Point& rNewOffset, sal_uInt8* pBuffer); - bool SetOutputSize( const Size& rNewSize, bool bErase = true ) - { return SetOutputSizePixel( LogicToPixel( rNewSize ), bErase ); } + bool SetOutputSize( const Size& rNewSize ) + { return SetOutputSizePixel( LogicToPixel( rNewSize ) ); } // reference device modes for different compatibility levels enum RefDevMode { REFDEV_NONE = 0, diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index c9a6d0b76164..6abc34b4bf5b 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -576,7 +576,7 @@ public: SAL_DLLPRIVATE void ImplNotifyKeyMouseCommandEventListeners( NotifyEvent& rNEvt ); SAL_DLLPRIVATE void ImplNotifyIconifiedState( bool bIconified ); - SAL_DLLPRIVATE void ImplUpdateAll( bool bOverlapWindows = true ); + SAL_DLLPRIVATE void ImplUpdateAll(); SAL_DLLPRIVATE void ImplControlFocus( GetFocusFlags nFlags = GetFocusFlags::NONE ); @@ -871,7 +871,7 @@ public: /// Enable/disable double-buffering of the frame window and all its children. void RequestDoubleBuffering(bool bRequest); - void EnableAllResize( bool bEnable = true ); + void EnableAllResize(); void SetBorderStyle( WindowBorderStyle nBorderStyle ); WindowBorderStyle GetBorderStyle() const; @@ -1084,7 +1084,7 @@ public: virtual void Invalidate( InvalidateFlags nFlags = InvalidateFlags::NONE ); virtual void Invalidate( const Rectangle& rRect, InvalidateFlags nFlags = InvalidateFlags::NONE ); virtual void Invalidate( const vcl::Region& rRegion, InvalidateFlags nFlags = InvalidateFlags::NONE ); - void Validate( ValidateFlags nFlags = ValidateFlags::NONE ); + void Validate(); bool HasPaintEvent() const; void Update(); void Flush(); diff --git a/include/vcl/wmf.hxx b/include/vcl/wmf.hxx index f7864edcfa88..c938e9c5fe41 100644 --- a/include/vcl/wmf.hxx +++ b/include/vcl/wmf.hxx @@ -57,7 +57,7 @@ struct WMF_EXTERNALHEADER bool ConvertWMFToGDIMetaFile( SvStream & rStreamWMF, GDIMetaFile & rGDIMetaFile, FilterConfigItem* pConfigItem = nullptr, WMF_EXTERNALHEADER *pExtHeader = nullptr ); -VCL_DLLPUBLIC bool ReadWindowMetafile( SvStream& rStream, GDIMetaFile& rMTF, FilterConfigItem* pConfigItem = nullptr ); +VCL_DLLPUBLIC bool ReadWindowMetafile( SvStream& rStream, GDIMetaFile& rMTF ); VCL_DLLPUBLIC bool ConvertGDIMetaFileToWMF( const GDIMetaFile & rMTF, SvStream & rTargetStream, FilterConfigItem* pConfigItem = nullptr, bool bPlaceable = true ); |