summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-10 13:48:02 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-08-12 06:54:08 +0000
commit500a3be0ea9184fc2823d704acf4037f70c6721e (patch)
tree9ceff28559b0b56c58c44313894589e564496a6b /vcl
parent8806a86c9d1ba63259ea79dd1c955ef970ab1989 (diff)
loplugin:countusersofdefaultparams in vcl..xmlsecurity
Change-Id: I538596a99e632178d928ff7e66ad45c71b73c6fd Reviewed-on: https://gerrit.libreoffice.org/28018 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/fontsubset.hxx2
-rw-r--r--vcl/inc/graphite_layout.hxx2
-rw-r--r--vcl/inc/listbox.hxx4
-rw-r--r--vcl/inc/openglgdiimpl.hxx8
-rw-r--r--vcl/inc/sallayout.hxx6
-rw-r--r--vcl/inc/spin.hxx2
-rw-r--r--vcl/inc/unx/printergfx.hxx2
-rw-r--r--vcl/inc/unx/salframe.h4
-rw-r--r--vcl/inc/unx/salobj.h2
-rw-r--r--vcl/inc/unx/wmadaptor.hxx2
-rw-r--r--vcl/source/control/longcurr.cxx2
-rw-r--r--vcl/source/filter/ixbm/xbmread.cxx2
-rw-r--r--vcl/source/filter/wmf/winmtf.hxx4
-rw-r--r--vcl/source/filter/wmf/wmfwr.hxx2
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx2
-rw-r--r--vcl/source/gdi/pdfwriter_impl.hxx2
-rw-r--r--vcl/source/window/menubarwindow.hxx2
-rw-r--r--vcl/unx/generic/app/wmadaptor.cxx2
-rw-r--r--vcl/unx/generic/gdi/xrender_peer.hxx2
-rw-r--r--vcl/unx/generic/print/glyphset.hxx2
-rw-r--r--vcl/unx/generic/printer/ppdparser.cxx4
21 files changed, 30 insertions, 30 deletions
diff --git a/vcl/inc/fontsubset.hxx b/vcl/inc/fontsubset.hxx
index 5c17e86d5341..335c8ff9a33a 100644
--- a/vcl/inc/fontsubset.hxx
+++ b/vcl/inc/fontsubset.hxx
@@ -81,7 +81,7 @@ private:
int mnReqGlyphCount;
protected:
- bool CreateFontSubsetFromCff( sal_Int32* pOutGlyphWidths = nullptr );
+ bool CreateFontSubsetFromCff( sal_Int32* pOutGlyphWidths );
bool CreateFontSubsetFromSfnt( sal_Int32* pOutGlyphWidths );
static bool CreateFontSubsetFromType1( sal_Int32* pOutGlyphWidths );
};
diff --git a/vcl/inc/graphite_layout.hxx b/vcl/inc/graphite_layout.hxx
index 75a38db13ce0..83141fddd9a2 100644
--- a/vcl/inc/graphite_layout.hxx
+++ b/vcl/inc/graphite_layout.hxx
@@ -113,7 +113,7 @@ public:
virtual void AdjustLayout( ImplLayoutArgs& ) override; // adjusting positions
// methods using string indexing
- virtual sal_Int32 GetTextBreak(DeviceCoordinate nMaxWidth, DeviceCoordinate nCharExtra=0, int nFactor=1) const override;
+ virtual sal_Int32 GetTextBreak(DeviceCoordinate nMaxWidth, DeviceCoordinate nCharExtra, int nFactor) const override;
virtual DeviceCoordinate FillDXArray( DeviceCoordinate* pDXArray ) const override;
void ApplyDXArray(ImplLayoutArgs &rArgs, std::vector<int> & rDeltaWidth);
diff --git a/vcl/inc/listbox.hxx b/vcl/inc/listbox.hxx
index abde99b8aa53..5a6a317ae89c 100644
--- a/vcl/inc/listbox.hxx
+++ b/vcl/inc/listbox.hxx
@@ -111,7 +111,7 @@ public:
/// GetAddedHeight( 0 ) @return 0
/// GetAddedHeight( LISTBOX_ENTRY_NOTFOUND ) @return 0
/// GetAddedHeight( i, k ) with k > i is equivalent -GetAddedHeight( k, i )
- long GetAddedHeight( sal_Int32 nEndIndex, sal_Int32 nBeginIndex = 0 ) const;
+ long GetAddedHeight( sal_Int32 nEndIndex, sal_Int32 nBeginIndex ) const;
long GetEntryHeight( sal_Int32 nPos ) const;
sal_Int32 GetEntryCount() const { return (sal_Int32 )maEntries.size(); }
@@ -561,7 +561,7 @@ public:
bool IsUserDrawEnabled() const { return mbUserDrawEnabled; }
void DrawEntry(vcl::RenderContext& rRenderContext, bool bDrawImage,
- bool bDrawTextAtImagePos = false, bool bLayout = false);
+ bool bDrawTextAtImagePos, bool bLayout = false);
bool GetEdgeBlending() const { return mbEdgeBlending; }
void SetEdgeBlending(bool bNew) { mbEdgeBlending = bNew; }
diff --git a/vcl/inc/openglgdiimpl.hxx b/vcl/inc/openglgdiimpl.hxx
index 1bc9ef54c2f5..7e712f123a3d 100644
--- a/vcl/inc/openglgdiimpl.hxx
+++ b/vcl/inc/openglgdiimpl.hxx
@@ -104,7 +104,7 @@ protected:
void ImplInitClipRegion();
void ImplSetClipBit( const vcl::Region& rClip, GLuint nMask );
- void ImplDrawLineAA( double nX1, double nY1, double nX2, double nY2, bool edge = false );
+ void ImplDrawLineAA( double nX1, double nY1, double nX2, double nY2, bool edge );
bool CheckOffscreenTexture();
void ApplyProgramMatrices(float fPixelOffset = 0.0);
@@ -121,7 +121,7 @@ public:
bool UseInvert(SalInvert nFlags);
void DrawConvexPolygon( sal_uInt32 nPoints, const SalPoint* pPtAry, bool blockAA = false );
- void DrawConvexPolygon( const tools::Polygon& rPolygon, bool blockAA = false );
+ void DrawConvexPolygon( const tools::Polygon& rPolygon, bool blockAA );
void DrawTrapezoid( const basegfx::B2DTrapezoid& trapezoid, bool blockAA );
void DrawRect( long nX, long nY, long nWidth, long nHeight );
void DrawRect( const Rectangle& rRect );
@@ -133,7 +133,7 @@ public:
void DrawTexture( OpenGLTexture& rTexture, const SalTwoRect& rPosAry, bool bInverted = false );
void DrawTransformedTexture( OpenGLTexture& rTexture, OpenGLTexture& rMask, const basegfx::B2DPoint& rNull, const basegfx::B2DPoint& rX, const basegfx::B2DPoint& rY );
void DrawAlphaTexture( OpenGLTexture& rTexture, const SalTwoRect& rPosAry, bool bInverted, bool pPremultiplied );
- void DrawTextureDiff( OpenGLTexture& rTexture, OpenGLTexture& rMask, const SalTwoRect& rPosAry, bool bInverted = false );
+ void DrawTextureDiff( OpenGLTexture& rTexture, OpenGLTexture& rMask, const SalTwoRect& rPosAry, bool bInverted );
void DrawTextureWithMask( OpenGLTexture& rTexture, OpenGLTexture& rMask, const SalTwoRect& rPosAry );
void DrawBlendedTexture( OpenGLTexture& rTexture, OpenGLTexture& rMask, OpenGLTexture& rAlpha, const SalTwoRect& rPosAry );
void DrawMask( OpenGLTexture& rTexture, SalColor nMaskColor, const SalTwoRect& rPosAry );
@@ -162,7 +162,7 @@ public:
enum XOROption { IGNORE_XOR, IMPLEMENT_XOR };
// initialize pre-draw state
- void InitializePreDrawState(XOROption eOpt = IGNORE_XOR);
+ void InitializePreDrawState(XOROption eOpt);
// operations to do before painting
void PreDraw(XOROption eOpt = IGNORE_XOR);
diff --git a/vcl/inc/sallayout.hxx b/vcl/inc/sallayout.hxx
index b348ace8fb21..b6f44d43d8dc 100644
--- a/vcl/inc/sallayout.hxx
+++ b/vcl/inc/sallayout.hxx
@@ -174,7 +174,7 @@ public:
int GetOrientation() const { return mnOrientation; }
// methods using string indexing
- virtual sal_Int32 GetTextBreak(DeviceCoordinate nMaxWidth, DeviceCoordinate nCharExtra=0, int nFactor=1) const = 0;
+ virtual sal_Int32 GetTextBreak(DeviceCoordinate nMaxWidth, DeviceCoordinate nCharExtra, int nFactor) const = 0;
virtual DeviceCoordinate FillDXArray( DeviceCoordinate* pDXArray ) const = 0;
virtual DeviceCoordinate GetTextWidth() const { return FillDXArray( nullptr ); }
virtual void GetCaretPositions( int nArraySize, long* pCaretXArray ) const = 0;
@@ -234,7 +234,7 @@ class VCL_PLUGIN_PUBLIC MultiSalLayout : public SalLayout
{
public:
virtual void DrawText( SalGraphics& ) const override;
- virtual sal_Int32 GetTextBreak(DeviceCoordinate nMaxWidth, DeviceCoordinate nCharExtra=0, int nFactor=1) const override;
+ virtual sal_Int32 GetTextBreak(DeviceCoordinate nMaxWidth, DeviceCoordinate nCharExtra, int nFactor) const override;
virtual DeviceCoordinate FillDXArray( DeviceCoordinate* pDXArray ) const override;
virtual void GetCaretPositions( int nArraySize, long* pCaretXArray ) const override;
virtual int GetNextGlyphs( int nLen, sal_GlyphId* pGlyphIdxAry, Point& rPos,
@@ -336,7 +336,7 @@ public:
// used by upper layers
virtual DeviceCoordinate GetTextWidth() const override;
virtual DeviceCoordinate FillDXArray( DeviceCoordinate* pDXArray ) const override;
- virtual sal_Int32 GetTextBreak(DeviceCoordinate nMaxWidth, DeviceCoordinate nCharExtra=0, int nFactor=1) const override;
+ virtual sal_Int32 GetTextBreak(DeviceCoordinate nMaxWidth, DeviceCoordinate nCharExtra, int nFactor) const override;
virtual void GetCaretPositions( int nArraySize, long* pCaretXArray ) const override;
// used by display layers
diff --git a/vcl/inc/spin.hxx b/vcl/inc/spin.hxx
index 0ccfca50def8..4522666a124e 100644
--- a/vcl/inc/spin.hxx
+++ b/vcl/inc/spin.hxx
@@ -34,7 +34,7 @@ void ImplDrawSpinButton(vcl::RenderContext& rRenderContext, vcl::Window* pWindow
// Draw Up/Down buttons suitable for use in any context
void ImplDrawUpDownButtons(vcl::RenderContext& rRenderContext,
const Rectangle& rUpperRect, const Rectangle& rLowerRect,
- bool bUpperIn, bool bLowerIn, bool bUpperEnabled = true, bool bLowerEnabled = true,
+ bool bUpperIn, bool bLowerIn, bool bUpperEnabled, bool bLowerEnabled = true,
bool bHorz = false, bool bMirrorHorz = false);
diff --git a/vcl/inc/unx/printergfx.hxx b/vcl/inc/unx/printergfx.hxx
index f7f1367a28ee..eed4209dcbee 100644
--- a/vcl/inc/unx/printergfx.hxx
+++ b/vcl/inc/unx/printergfx.hxx
@@ -245,7 +245,7 @@ public:
void PSUploadPS1Font (sal_Int32 nFontID);
void PSSetFont (const OString& rName,
- rtl_TextEncoding nEncoding = RTL_TEXTENCODING_DONTKNOW)
+ rtl_TextEncoding nEncoding)
{ maVirtualStatus.maFont = rName; maVirtualStatus.maEncoding = nEncoding; }
/* graphics status stack */
diff --git a/vcl/inc/unx/salframe.h b/vcl/inc/unx/salframe.h
index f2c3122a89fd..057520b875cb 100644
--- a/vcl/inc/unx/salframe.h
+++ b/vcl/inc/unx/salframe.h
@@ -162,8 +162,8 @@ public:
virtual ~X11SalFrame();
long Dispatch( XEvent *pEvent );
- void Init( SalFrameStyleFlags nSalFrameStyle, SalX11Screen nScreen = SalX11Screen( -1 ),
- SystemParentData* pParentData = nullptr, bool bUseGeometry = false );
+ void Init( SalFrameStyleFlags nSalFrameStyle, SalX11Screen nScreen,
+ SystemParentData* pParentData, bool bUseGeometry = false );
SalDisplay* GetDisplay() const
{
diff --git a/vcl/inc/unx/salobj.h b/vcl/inc/unx/salobj.h
index 424f3aacb686..a163ea9fff7b 100644
--- a/vcl/inc/unx/salobj.h
+++ b/vcl/inc/unx/salobj.h
@@ -61,7 +61,7 @@ public:
bool mbVisible;
static VCL_DLLPUBLIC bool Dispatch( XEvent* pEvent );
- static VCL_DLLPUBLIC X11SalObject* CreateObject( SalFrame* pParent, SystemWindowData* pWindowData, bool bShow = true );
+ static VCL_DLLPUBLIC X11SalObject* CreateObject( SalFrame* pParent, SystemWindowData* pWindowData, bool bShow );
X11SalObject();
virtual ~X11SalObject();
diff --git a/vcl/inc/unx/wmadaptor.hxx b/vcl/inc/unx/wmadaptor.hxx
index 3c0c1295c95a..2aae1ac9d5df 100644
--- a/vcl/inc/unx/wmadaptor.hxx
+++ b/vcl/inc/unx/wmadaptor.hxx
@@ -258,7 +258,7 @@ public:
* set hints what decoration is needed;
* must be called before showing the frame
*/
- virtual void setFrameTypeAndDecoration( X11SalFrame* pFrame, WMWindowType eType, int nDecorationFlags, X11SalFrame* pTransientFrame = nullptr ) const;
+ virtual void setFrameTypeAndDecoration( X11SalFrame* pFrame, WMWindowType eType, int nDecorationFlags, X11SalFrame* pTransientFrame ) const;
/*
* tells whether there is WM support for splash screens
diff --git a/vcl/source/control/longcurr.cxx b/vcl/source/control/longcurr.cxx
index 75ddd72c9285..656693a69968 100644
--- a/vcl/source/control/longcurr.cxx
+++ b/vcl/source/control/longcurr.cxx
@@ -122,7 +122,7 @@ bool ImplNumericProcessKeyInput( Edit*, const KeyEvent& rKEvt,
bool ImplNumericGetValue( const OUString& rStr, BigInt& rValue,
sal_uInt16 nDecDigits, const LocaleDataWrapper& rLocaleDataWrapper,
- bool bCurrency = false )
+ bool bCurrency )
{
OUString aStr = rStr;
OUStringBuffer aStr1;
diff --git a/vcl/source/filter/ixbm/xbmread.cxx b/vcl/source/filter/ixbm/xbmread.cxx
index 4053f056d53e..50ecf8caedd2 100644
--- a/vcl/source/filter/ixbm/xbmread.cxx
+++ b/vcl/source/filter/ixbm/xbmread.cxx
@@ -49,7 +49,7 @@ class XBMReader : public GraphicReader
void InitTable();
OString FindTokenLine( SvStream* pInStm, const char* pTok1,
- const char* pTok2 = nullptr, const char* pTok3 = nullptr );
+ const char* pTok2, const char* pTok3 = nullptr );
long ParseDefine( const sal_Char* pDefine );
bool ParseData( SvStream* pInStm, const OString& aLastLine, XBMFormat eFormat );
diff --git a/vcl/source/filter/wmf/winmtf.hxx b/vcl/source/filter/wmf/winmtf.hxx
index 6177d08dbe75..1f4e27443f84 100644
--- a/vcl/source/filter/wmf/winmtf.hxx
+++ b/vcl/source/filter/wmf/winmtf.hxx
@@ -621,8 +621,8 @@ public:
bool bRecordPath = false
);
void DrawPolyBezier( tools::Polygon& rPolygin,
- bool bDrawTo = false,
- bool bRecordPath = false
+ bool bDrawTo,
+ bool bRecordPath
);
void DrawText( Point& rPosition,
OUString& rString,
diff --git a/vcl/source/filter/wmf/wmfwr.hxx b/vcl/source/filter/wmf/wmfwr.hxx
index 32cf5cf6d1ae..47e0d569b24d 100644
--- a/vcl/source/filter/wmf/wmfwr.hxx
+++ b/vcl/source/filter/wmf/wmfwr.hxx
@@ -199,7 +199,7 @@ private:
public:
WMFWriter();
- bool WriteWMF(const GDIMetaFile & rMTF, SvStream & rTargetStream, FilterConfigItem* pFilterConfigItem, bool bPlaceable=true);
+ bool WriteWMF(const GDIMetaFile & rMTF, SvStream & rTargetStream, FilterConfigItem* pFilterConfigItem, bool bPlaceable);
};
#endif
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index d5f683fad74d..76beeaa9df7a 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -898,7 +898,7 @@ static void appendDouble( double fValue, OStringBuffer& rBuffer, sal_Int32 nPrec
}
}
-static void appendColor( const Color& rColor, OStringBuffer& rBuffer, bool bConvertToGrey = false )
+static void appendColor( const Color& rColor, OStringBuffer& rBuffer, bool bConvertToGrey )
{
if( rColor != Color( COL_TRANSPARENT ) )
diff --git a/vcl/source/gdi/pdfwriter_impl.hxx b/vcl/source/gdi/pdfwriter_impl.hxx
index 669bd9214346..4eb9a187e755 100644
--- a/vcl/source/gdi/pdfwriter_impl.hxx
+++ b/vcl/source/gdi/pdfwriter_impl.hxx
@@ -1176,7 +1176,7 @@ public:
// links
sal_Int32 createLink( const Rectangle& rRect, sal_Int32 nPageNr );
- sal_Int32 createDest( const Rectangle& rRect, sal_Int32 nPageNr = -1, PDFWriter::DestAreaType eType = PDFWriter::XYZ );
+ sal_Int32 createDest( const Rectangle& rRect, sal_Int32 nPageNr, PDFWriter::DestAreaType eType );
sal_Int32 registerDestReference( sal_Int32 nDestId, const Rectangle& rRect, sal_Int32 nPageNr, PDFWriter::DestAreaType eType );
void setLinkDest( sal_Int32 nLinkId, sal_Int32 nDestId );
void setLinkURL( sal_Int32 nLinkId, const OUString& rURL );
diff --git a/vcl/source/window/menubarwindow.hxx b/vcl/source/window/menubarwindow.hxx
index 06aac8db6ba5..f82d9bd8711a 100644
--- a/vcl/source/window/menubarwindow.hxx
+++ b/vcl/source/window/menubarwindow.hxx
@@ -45,7 +45,7 @@ public:
void DataChanged( const DataChangedEvent& rDCEvt ) override;
- void SetImages( long nMaxHeight = 0, bool bForce = false );
+ void SetImages( long nMaxHeight, bool bForce = false );
void calcMinSize();
const Size& getMinSize() { return maMinSize;}
diff --git a/vcl/unx/generic/app/wmadaptor.cxx b/vcl/unx/generic/app/wmadaptor.cxx
index f61082c7f9f4..640c16f2cdb2 100644
--- a/vcl/unx/generic/app/wmadaptor.cxx
+++ b/vcl/unx/generic/app/wmadaptor.cxx
@@ -55,7 +55,7 @@ public:
virtual void setWMName( X11SalFrame* pFrame, const OUString& rWMName ) const override;
virtual void maximizeFrame( X11SalFrame* pFrame, bool bHorizontal = true, bool bVertical = true ) const override;
virtual void shade( X11SalFrame* pFrame, bool bToShaded ) const override;
- virtual void setFrameTypeAndDecoration( X11SalFrame* pFrame, WMWindowType eType, int nDecorationFlags, X11SalFrame* pTransientFrame = nullptr ) const override;
+ virtual void setFrameTypeAndDecoration( X11SalFrame* pFrame, WMWindowType eType, int nDecorationFlags, X11SalFrame* pTransientFrame ) const override;
virtual void enableAlwaysOnTop( X11SalFrame* pFrame, bool bEnable ) const override;
virtual int handlePropertyNotify( X11SalFrame* pFrame, XPropertyEvent* pEvent ) const override;
virtual void showFullScreen( X11SalFrame* pFrame, bool bFullScreen ) const override;
diff --git a/vcl/unx/generic/gdi/xrender_peer.hxx b/vcl/unx/generic/gdi/xrender_peer.hxx
index dbd6cb4955af..6bba583c1f56 100644
--- a/vcl/unx/generic/gdi/xrender_peer.hxx
+++ b/vcl/unx/generic/gdi/xrender_peer.hxx
@@ -135,7 +135,7 @@ inline void XRenderPeer::CompositeTrapezoids( int nOp,
nXSrc, nYSrc, pXT, nCount );
}
-inline XRenderColor GetXRenderColor( SalColor rSalColor, double fTransparency = 0.0 )
+inline XRenderColor GetXRenderColor( SalColor rSalColor, double fTransparency )
{
XRenderColor aRetVal;
// convert the SalColor
diff --git a/vcl/unx/generic/print/glyphset.hxx b/vcl/unx/generic/print/glyphset.hxx
index c35ac42730ac..07d9cbac8f9b 100644
--- a/vcl/unx/generic/print/glyphset.hxx
+++ b/vcl/unx/generic/print/glyphset.hxx
@@ -106,7 +106,7 @@ public:
void DrawText (PrinterGfx &rGfx, const Point& rPoint,
const sal_Unicode* pStr, sal_Int16 nLen,
- const sal_Int32* pDeltaArray = nullptr);
+ const sal_Int32* pDeltaArray);
void DrawGlyphs (PrinterGfx& rGfx,
const Point& rPoint,
const sal_GlyphId* pGlyphIds,
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx
index 2a62dcf21ce0..ca602810a504 100644
--- a/vcl/unx/generic/printer/ppdparser.cxx
+++ b/vcl/unx/generic/printer/ppdparser.cxx
@@ -84,13 +84,13 @@ namespace psp
const OUString& i_rOption,
const OUString& i_rValue,
const OUString& i_rTranslation,
- const css::lang::Locale& i_rLocale = css::lang::Locale()
+ const css::lang::Locale& i_rLocale
);
void insertOption( const OUString& i_rKey,
const OUString& i_rOption,
const OUString& i_rTranslation,
- const css::lang::Locale& i_rLocale = css::lang::Locale() )
+ const css::lang::Locale& i_rLocale )
{
insertValue( i_rKey, i_rOption, OUString(), i_rTranslation, i_rLocale );
}