summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-07-25 13:32:04 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-08-25 06:37:42 +0000
commitb8064bdf7fabdbfd2546830f6fb8f0de6b8d4329 (patch)
treecb8c8db34a096467cf81c6ae0649a00032bb4a7f /include
parent1e84b23839d96068c862e746c9162db79d2c8c62 (diff)
new loplugin: countusersofdefaultparams
Change-Id: I79e2c690f3e664c14af12cf763dd5a8ac20d6b04 Reviewed-on: https://gerrit.libreoffice.org/28353 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/basegfx/polygon/b2dlinegeometry.hxx4
-rw-r--r--include/basegfx/polygon/b2dpolygontools.hxx12
-rw-r--r--include/basegfx/polygon/b2dpolypolygontools.hxx4
-rw-r--r--include/basegfx/polygon/b2dtrapezoid.hxx6
-rw-r--r--include/basegfx/polygon/b3dpolygontools.hxx10
-rw-r--r--include/basegfx/polygon/b3dpolypolygontools.hxx8
-rw-r--r--include/basic/sbmeth.hxx2
-rw-r--r--include/basic/sbxcore.hxx2
-rw-r--r--include/basic/sbxfac.hxx2
-rw-r--r--include/basic/sbxobj.hxx2
-rw-r--r--include/basic/sbxvar.hxx4
-rw-r--r--include/comphelper/accessiblewrapper.hxx2
-rw-r--r--include/comphelper/configuration.hxx4
-rw-r--r--include/comphelper/embeddedobjectcontainer.hxx2
-rw-r--r--include/comphelper/propertybag.hxx2
-rw-r--r--include/comphelper/sequence.hxx2
-rw-r--r--include/comphelper/string.hxx2
-rw-r--r--include/connectivity/dbtools.hxx10
-rw-r--r--include/drawinglayer/primitive2d/graphicprimitivehelper2d.hxx2
-rw-r--r--include/editeng/AccessibleImageBullet.hxx2
-rw-r--r--include/editeng/borderline.hxx2
-rw-r--r--include/editeng/boxitem.hxx2
-rw-r--r--include/editeng/editeng.hxx16
-rw-r--r--include/editeng/editobj.hxx2
-rw-r--r--include/editeng/editview.hxx8
-rw-r--r--include/editeng/lrspitem.hxx2
-rw-r--r--include/editeng/outliner.hxx10
-rw-r--r--include/editeng/paperinf.hxx2
-rw-r--r--include/editeng/svxacorr.hxx43
-rw-r--r--include/editeng/unoedprx.hxx2
-rw-r--r--include/filter/msfilter/escherex.hxx6
-rw-r--r--include/filter/msfilter/msdffimp.hxx14
-rw-r--r--include/filter/msfilter/rtfutil.hxx2
-rw-r--r--include/filter/msfilter/svdfppt.hxx10
-rw-r--r--include/formula/FormulaCompiler.hxx2
-rw-r--r--include/formula/IControlReferenceHandler.hxx2
-rw-r--r--include/formula/formula.hxx10
-rw-r--r--include/oox/export/vmlexport.hxx2
38 files changed, 106 insertions, 115 deletions
diff --git a/include/basegfx/polygon/b2dlinegeometry.hxx b/include/basegfx/polygon/b2dlinegeometry.hxx
index 5aefafbe679b..60230cc9168c 100644
--- a/include/basegfx/polygon/b2dlinegeometry.hxx
+++ b/include/basegfx/polygon/b2dlinegeometry.hxx
@@ -74,7 +74,7 @@ namespace basegfx
const B2DPolyPolygon& rArrow,
bool bStart,
double fWidth,
- double fCandidateLength = 0.0, // 0.0 -> calculate self
+ double fCandidateLength, // 0.0 -> calculate self
double fDockingPosition = 0.5, // 0->top, 1->bottom
double* pConsumedLength = nullptr,
double fShift = 0.0);
@@ -132,7 +132,7 @@ namespace basegfx
BASEGFX_DLLPUBLIC B2DPolyPolygon createAreaGeometry(
const B2DPolygon& rCandidate,
double fHalfLineWidth,
- B2DLineJoin eJoin = B2DLineJoin::Round,
+ B2DLineJoin eJoin,
css::drawing::LineCap eCap = css::drawing::LineCap_BUTT,
double fMaxAllowedAngle = (12.5 * F_PI180),
double fMaxPartOfEdge = 0.4,
diff --git a/include/basegfx/polygon/b2dpolygontools.hxx b/include/basegfx/polygon/b2dpolygontools.hxx
index 423cf8f30ef4..f73e02ad66af 100644
--- a/include/basegfx/polygon/b2dpolygontools.hxx
+++ b/include/basegfx/polygon/b2dpolygontools.hxx
@@ -132,13 +132,13 @@ namespace basegfx
BASEGFX_DLLPUBLIC B2VectorContinuity getContinuityInPoint(const B2DPolygon& rCandidate, sal_uInt32 nIndex);
// Subdivide all contained curves. Use distanceBound value if given.
- BASEGFX_DLLPUBLIC B2DPolygon adaptiveSubdivideByDistance(const B2DPolygon& rCandidate, double fDistanceBound = 0.0);
+ BASEGFX_DLLPUBLIC B2DPolygon adaptiveSubdivideByDistance(const B2DPolygon& rCandidate, double fDistanceBound);
// Subdivide all contained curves. Use angleBound value if given.
BASEGFX_DLLPUBLIC B2DPolygon adaptiveSubdivideByAngle(const B2DPolygon& rCandidate, double fAngleBound = 0.0);
// #i37443# Subdivide all contained curves.
- BASEGFX_DLLPUBLIC B2DPolygon adaptiveSubdivideByCount(const B2DPolygon& rCandidate, sal_uInt32 nCount = 0L);
+ BASEGFX_DLLPUBLIC B2DPolygon adaptiveSubdivideByCount(const B2DPolygon& rCandidate, sal_uInt32 nCount);
// This version works with two points and vectors to define the
// edges for the cut test.
@@ -344,17 +344,17 @@ namespace basegfx
BASEGFX_DLLPUBLIC B2VectorOrientation getOrientationForIndex(const B2DPolygon& rCandidate, sal_uInt32 nIndex);
// calculates if given point is on given line, taking care of the numerical epsilon
- BASEGFX_DLLPUBLIC bool isPointOnLine(const B2DPoint& rStart, const B2DPoint& rEnd, const B2DPoint& rCandidate, bool bWithPoints = false);
+ BASEGFX_DLLPUBLIC bool isPointOnLine(const B2DPoint& rStart, const B2DPoint& rEnd, const B2DPoint& rCandidate, bool bWithPoints);
// calculates if given point is on given polygon, taking care of the numerical epsilon. Uses
// isPointOnLine internally
BASEGFX_DLLPUBLIC bool isPointOnPolygon(const B2DPolygon& rCandidate, const B2DPoint& rPoint, bool bWithPoints = true);
// test if candidate is inside triangle
- BASEGFX_DLLPUBLIC bool isPointInTriangle(const B2DPoint& rA, const B2DPoint& rB, const B2DPoint& rC, const B2DPoint& rCandidate, bool bWithBorder = false);
+ BASEGFX_DLLPUBLIC bool isPointInTriangle(const B2DPoint& rA, const B2DPoint& rB, const B2DPoint& rC, const B2DPoint& rCandidate, bool bWithBorder);
// test if candidateA and candidateB are on the same side of the given line
- BASEGFX_DLLPUBLIC bool arePointsOnSameSideOfLine(const B2DPoint& rStart, const B2DPoint& rEnd, const B2DPoint& rCandidateA, const B2DPoint& rCandidateB, bool bWithLine = false);
+ BASEGFX_DLLPUBLIC bool arePointsOnSameSideOfLine(const B2DPoint& rStart, const B2DPoint& rEnd, const B2DPoint& rCandidateA, const B2DPoint& rCandidateB, bool bWithLine);
// add triangles for given rCandidate to rTarget. For each triangle, 3 points will be added to rCandidate.
// All triangles will go from the start point of rCandidate to two consecutive points, building (rCandidate.count() - 2)
@@ -463,7 +463,7 @@ namespace basegfx
B2DPolygon UnoPolygonBezierCoordsToB2DPolygon(
const css::drawing::PointSequence& rPointSequenceSource,
const css::drawing::FlagSequence& rFlagSequenceSource,
- bool bCheckClosed = true);
+ bool bCheckClosed);
void B2DPolygonToUnoPolygonBezierCoords(
const B2DPolygon& rPolyPolygon,
css::drawing::PointSequence& rPointSequenceRetval,
diff --git a/include/basegfx/polygon/b2dpolypolygontools.hxx b/include/basegfx/polygon/b2dpolypolygontools.hxx
index 07880e9c986e..97817a89a122 100644
--- a/include/basegfx/polygon/b2dpolypolygontools.hxx
+++ b/include/basegfx/polygon/b2dpolypolygontools.hxx
@@ -52,7 +52,7 @@ namespace basegfx
BASEGFX_DLLPUBLIC B2DPolyPolygon correctOutmostPolygon(const B2DPolyPolygon& rCandidate);
// Subdivide all contained curves. Use distanceBound value if given.
- BASEGFX_DLLPUBLIC B2DPolyPolygon adaptiveSubdivideByDistance(const B2DPolyPolygon& rCandidate, double fDistanceBound = 0.0);
+ BASEGFX_DLLPUBLIC B2DPolyPolygon adaptiveSubdivideByDistance(const B2DPolyPolygon& rCandidate, double fDistanceBound);
// Subdivide all contained curves. Use distanceBound value if given. Else, a convenient one
// is created.
@@ -265,7 +265,7 @@ namespace basegfx
are 'lit' for the given number. Return un-lit segments
otherwise.
*/
- B2DPolyPolygon createSevenSegmentPolyPolygon(sal_Char cNumber, bool bLitSegments=true);
+ B2DPolyPolygon createSevenSegmentPolyPolygon(sal_Char cNumber, bool bLitSegments);
/** snap some polygon coordinates to discrete coordinates
diff --git a/include/basegfx/polygon/b2dtrapezoid.hxx b/include/basegfx/polygon/b2dtrapezoid.hxx
index 41885cf894bb..f838a636ad56 100644
--- a/include/basegfx/polygon/b2dtrapezoid.hxx
+++ b/include/basegfx/polygon/b2dtrapezoid.hxx
@@ -94,7 +94,7 @@ namespace basegfx
B2DTrapezoidVector& ro_Result,
const B2DPoint& rPointA,
const B2DPoint& rPointB,
- double fLineWidth = 1.0);
+ double fLineWidth);
// create trapezoids for all edges of the given polygon. The closed state of
// the polygon is taken into account. If curves are contaned, the default
@@ -102,7 +102,7 @@ namespace basegfx
BASEGFX_DLLPUBLIC void createLineTrapezoidFromB2DPolygon(
B2DTrapezoidVector& ro_Result,
const B2DPolygon& rPolygon,
- double fLineWidth = 1.0);
+ double fLineWidth);
// create trapezoids for all edges of the given polyPolygon. The closed state of
// the tools::PolyPolygon is taken into account. If curves are contaned, the default
@@ -110,7 +110,7 @@ namespace basegfx
BASEGFX_DLLPUBLIC void createLineTrapezoidFromB2DPolyPolygon(
B2DTrapezoidVector& ro_Result,
const B2DPolyPolygon& rPolyPolygon,
- double fLineWidth = 1.0);
+ double fLineWidth);
} // end of namespace tools
} // end of namespace basegfx
diff --git a/include/basegfx/polygon/b3dpolygontools.hxx b/include/basegfx/polygon/b3dpolygontools.hxx
index 9a2291004cde..fa1442f19def 100644
--- a/include/basegfx/polygon/b3dpolygontools.hxx
+++ b/include/basegfx/polygon/b3dpolygontools.hxx
@@ -65,7 +65,7 @@ namespace basegfx
const B3DPolygon& rCandidate,
const ::std::vector<double>& rDotDashArray,
B3DPolyPolygon* pLineTarget,
- B3DPolyPolygon* pGapTarget = nullptr,
+ B3DPolyPolygon* pGapTarget,
double fFullDashDotLen = 0.0);
/** Create/replace normals for given 3d geometry with default normals from given center to outside.
@@ -83,20 +83,20 @@ namespace basegfx
If bChangeX, x texture coordinate will be recalculated.
If bChangeY, y texture coordinate will be recalculated.
*/
- BASEGFX_DLLPUBLIC B3DPolygon applyDefaultTextureCoordinatesParallel( const B3DPolygon& rCandidate, const B3DRange& rRange, bool bChangeX = true, bool bChangeY = true);
+ BASEGFX_DLLPUBLIC B3DPolygon applyDefaultTextureCoordinatesParallel( const B3DPolygon& rCandidate, const B3DRange& rRange, bool bChangeX, bool bChangeY = true);
/** Create/replace texture coordinates for given 3d geometry with spherical one
rCenter: the centre of the used 3d geometry
If bChangeX, x texture coordinate will be recalculated.
If bChangeY, y texture coordinate will be recalculated.
*/
- BASEGFX_DLLPUBLIC B3DPolygon applyDefaultTextureCoordinatesSphere( const B3DPolygon& rCandidate, const B3DPoint& rCenter, bool bChangeX = true, bool bChangeY = true);
+ BASEGFX_DLLPUBLIC B3DPolygon applyDefaultTextureCoordinatesSphere( const B3DPolygon& rCandidate, const B3DPoint& rCenter, bool bChangeX, bool bChangeY = true);
// isInside tests for B3DPoint. On border is not inside as long as not true is given in bWithBorder flag.
- BASEGFX_DLLPUBLIC bool isInside(const B3DPolygon& rCandidate, const B3DPoint& rPoint, bool bWithBorder = false);
+ BASEGFX_DLLPUBLIC bool isInside(const B3DPolygon& rCandidate, const B3DPoint& rPoint, bool bWithBorder);
// calculates if given point is on given line, taking care of the numerical epsilon
- BASEGFX_DLLPUBLIC bool isPointOnLine(const B3DPoint& rStart, const B3DPoint& rEnd, const B3DPoint& rCandidate, bool bWithPoints = false);
+ BASEGFX_DLLPUBLIC bool isPointOnLine(const B3DPoint& rStart, const B3DPoint& rEnd, const B3DPoint& rCandidate, bool bWithPoints);
// calculates if given point is on given polygon, taking care of the numerical epsilon. Uses
// isPointOnLine internally
diff --git a/include/basegfx/polygon/b3dpolypolygontools.hxx b/include/basegfx/polygon/b3dpolypolygontools.hxx
index afb4acf00e67..f88c28340a31 100644
--- a/include/basegfx/polygon/b3dpolypolygontools.hxx
+++ b/include/basegfx/polygon/b3dpolypolygontools.hxx
@@ -64,7 +64,7 @@ namespace basegfx
With VerStart, VerStop and hor range in cartesian may be specified to create a partial sphere only.
*/
BASEGFX_DLLPUBLIC B3DPolyPolygon createUnitSpherePolyPolygon(
- sal_uInt32 nHorSeg = 0L, sal_uInt32 nVerSeg = 0L,
+ sal_uInt32 nHorSeg, sal_uInt32 nVerSeg = 0L,
double fVerStart = F_PI2, double fVerStop = -F_PI2,
double fHorStart = 0.0, double fHorStop = F_2PI);
@@ -74,7 +74,7 @@ namespace basegfx
*/
BASEGFX_DLLPUBLIC B3DPolyPolygon createSpherePolyPolygonFromB3DRange(
const B3DRange& rRange,
- sal_uInt32 nHorSeg = 0L, sal_uInt32 nVerSeg = 0L,
+ sal_uInt32 nHorSeg, sal_uInt32 nVerSeg = 0L,
double fVerStart = F_PI2, double fVerStop = -F_PI2,
double fHorStart = 0.0, double fHorStop = F_2PI);
@@ -82,7 +82,7 @@ namespace basegfx
There is one extra, the bool bNormals defines if normals will be set, default is false
*/
BASEGFX_DLLPUBLIC B3DPolyPolygon createUnitSphereFillPolyPolygon(
- sal_uInt32 nHorSeg = 0L, sal_uInt32 nVerSeg = 0L,
+ sal_uInt32 nHorSeg, sal_uInt32 nVerSeg = 0L,
bool bNormals = false,
double fVerStart = F_PI2, double fVerStop = -F_PI2,
double fHorStart = 0.0, double fHorStop = F_2PI);
@@ -92,7 +92,7 @@ namespace basegfx
*/
BASEGFX_DLLPUBLIC B3DPolyPolygon createSphereFillPolyPolygonFromB3DRange(
const B3DRange& rRange,
- sal_uInt32 nHorSeg = 0L, sal_uInt32 nVerSeg = 0L,
+ sal_uInt32 nHorSeg, sal_uInt32 nVerSeg = 0L,
bool bNormals = false,
double fVerStart = F_PI2, double fVerStop = -F_PI2,
double fHorStart = 0.0, double fHorStop = F_2PI);
diff --git a/include/basic/sbmeth.hxx b/include/basic/sbmeth.hxx
index c09c79cf9519..79199805af05 100644
--- a/include/basic/sbmeth.hxx
+++ b/include/basic/sbmeth.hxx
@@ -61,7 +61,7 @@ public:
void GetLineRange( sal_uInt16&, sal_uInt16& );
// Interface to execute a method from the applications
- ErrCode Call( SbxValue* pRet = nullptr, SbxVariable* pCaller = nullptr );
+ ErrCode Call( SbxValue* pRet, SbxVariable* pCaller = nullptr );
virtual void Broadcast( sal_uInt32 nHintId ) override;
};
diff --git a/include/basic/sbxcore.hxx b/include/basic/sbxcore.hxx
index 25c78151da53..717aea3475df 100644
--- a/include/basic/sbxcore.hxx
+++ b/include/basic/sbxcore.hxx
@@ -91,7 +91,7 @@ public:
static void AddFactory( SbxFactory* );
static void RemoveFactory( SbxFactory* );
- static SbxBase* Create( sal_uInt16, sal_uInt32=SBXCR_SBX );
+ static SbxBase* Create( sal_uInt16, sal_uInt32 );
static SbxObject* CreateObject( const OUString& );
};
diff --git a/include/basic/sbxfac.hxx b/include/basic/sbxfac.hxx
index 95139d538c64..5b3e3b4cf7b8 100644
--- a/include/basic/sbxfac.hxx
+++ b/include/basic/sbxfac.hxx
@@ -34,7 +34,7 @@ public:
virtual ~SbxFactory();
SbxFactory( bool bLast=false ) { bHandleLast = bLast; }
bool IsHandleLast() { return bHandleLast; }
- virtual SbxBase* Create( sal_uInt16 nSbxId, sal_uInt32 = SBXCR_SBX );
+ virtual SbxBase* Create( sal_uInt16 nSbxId, sal_uInt32 );
virtual SbxObject* CreateObject( const OUString& );
};
diff --git a/include/basic/sbxobj.hxx b/include/basic/sbxobj.hxx
index 80449e20065c..b91056d6d09a 100644
--- a/include/basic/sbxobj.hxx
+++ b/include/basic/sbxobj.hxx
@@ -78,7 +78,7 @@ public:
SbxArray* GetProperties() { return pProps; }
SbxArray* GetObjects() { return pObjs; }
// Debugging
- void Dump( SvStream&, bool bDumpAll=false );
+ void Dump( SvStream&, bool bDumpAll );
};
#endif // INCLUDED_BASIC_SBXOBJ_HXX
diff --git a/include/basic/sbxvar.hxx b/include/basic/sbxvar.hxx
index c90e98b687c5..1cdac7c7414c 100644
--- a/include/basic/sbxvar.hxx
+++ b/include/basic/sbxvar.hxx
@@ -174,7 +174,7 @@ public:
bool Convert( SbxDataType );
bool Compute( SbxOperator, const SbxValue& );
bool Compare( SbxOperator, const SbxValue& ) const;
- bool Scan( const OUString&, sal_uInt16* = nullptr );
+ bool Scan( const OUString&, sal_uInt16* );
void Format( OUString&, const OUString* = nullptr ) const;
// The following operators are definied for easier handling.
@@ -246,7 +246,7 @@ public:
SbxVariable( const SbxVariable& );
SbxVariable& operator=( const SbxVariable& );
- void Dump( SvStream&, bool bDumpAll=false );
+ void Dump( SvStream&, bool bDumpAll );
void SetName( const OUString& );
const OUString& GetName( SbxNameType = SbxNAME_NONE ) const;
diff --git a/include/comphelper/accessiblewrapper.hxx b/include/comphelper/accessiblewrapper.hxx
index 84479c023f2a..4676d2c45bea 100644
--- a/include/comphelper/accessiblewrapper.hxx
+++ b/include/comphelper/accessiblewrapper.hxx
@@ -339,7 +339,7 @@ namespace comphelper
/** specifies if the children are to be considered transient (i.e.: not cached)
<p>to be called only once per lifetime</p>
*/
- void setTransientChildren( bool _bSet = true );
+ void setTransientChildren( bool _bSet );
/** sets the XAccessible which belongs to the XAccessibleContext which we work for
<p>to be called only once per lifetime</p>
diff --git a/include/comphelper/configuration.hxx b/include/comphelper/configuration.hxx
index 915d803b6f16..d2df43b4d880 100644
--- a/include/comphelper/configuration.hxx
+++ b/include/comphelper/configuration.hxx
@@ -245,9 +245,7 @@ template< typename T, typename U > struct ConfigurationLocalizedProperty
/// com.sun.star.configuration.theDefaultProvider.
///
/// For nillable properties, U is of type boost::optional<U'>.
- static U get(
- css::uno::Reference< css::uno::XComponentContext >
- const & context = comphelper::getProcessComponentContext())
+ static U get(css::uno::Reference< css::uno::XComponentContext > const & context)
{
// Folding this into one statement causes a bogus error at least with
// Red Hat GCC 4.6.2-1:
diff --git a/include/comphelper/embeddedobjectcontainer.hxx b/include/comphelper/embeddedobjectcontainer.hxx
index 70a583c51ec0..af548adbb578 100644
--- a/include/comphelper/embeddedobjectcontainer.hxx
+++ b/include/comphelper/embeddedobjectcontainer.hxx
@@ -57,7 +57,7 @@ class COMPHELPER_DLLPUBLIC EmbeddedObjectContainer
css::uno::Reference < css::embed::XEmbeddedObject > Get_Impl( const OUString&,
const css::uno::Reference < css::embed::XEmbeddedObject >& xCopy,
- OUString const* pBaseURL = nullptr);
+ OUString const* pBaseURL);
public:
// add an embedded object to the container storage
diff --git a/include/comphelper/propertybag.hxx b/include/comphelper/propertybag.hxx
index 3cc4ceaeec3b..2123484ebb85 100644
--- a/include/comphelper/propertybag.hxx
+++ b/include/comphelper/propertybag.hxx
@@ -53,7 +53,7 @@ namespace comphelper
@param i_isAllowed
iff true, empty property name will be allowed
*/
- void setAllowEmptyPropertyName(bool i_isAllowed = true);
+ void setAllowEmptyPropertyName(bool i_isAllowed);
/** adds a property to the bag
diff --git a/include/comphelper/sequence.hxx b/include/comphelper/sequence.hxx
index cbc2317b5731..7d8209d7a21f 100644
--- a/include/comphelper/sequence.hxx
+++ b/include/comphelper/sequence.hxx
@@ -32,7 +32,7 @@ namespace comphelper
/** search the given string within the given sequence, return the positions where it was found.
if _bOnlyFirst is sal_True, only the first occurrence will be returned.
*/
- COMPHELPER_DLLPUBLIC css::uno::Sequence<sal_Int16> findValue(const css::uno::Sequence< OUString >& _rList, const OUString& _rValue, bool _bOnlyFirst = false);
+ COMPHELPER_DLLPUBLIC css::uno::Sequence<sal_Int16> findValue(const css::uno::Sequence< OUString >& _rList, const OUString& _rValue, bool _bOnlyFirst);
namespace internal
{
diff --git a/include/comphelper/string.hxx b/include/comphelper/string.hxx
index ea8762850fdd..8aab4f12eddf 100644
--- a/include/comphelper/string.hxx
+++ b/include/comphelper/string.hxx
@@ -253,7 +253,7 @@ COMPHELPER_DLLPUBLIC OUString setToken(const OUString& rIn, sal_Int32 nToken, sa
or -1 if none of the code units occur in the string
*/
COMPHELPER_DLLPUBLIC sal_Int32 indexOfAny(OUString const& rIn,
- sal_Unicode const*const pChars, sal_Int32 const nPos = 0);
+ sal_Unicode const*const pChars, sal_Int32 const nPos);
/** Convert a sequence of strings to a single comma separated string.
diff --git a/include/connectivity/dbtools.hxx b/include/connectivity/dbtools.hxx
index 18e0919c6c75..2d57893f8668 100644
--- a/include/connectivity/dbtools.hxx
+++ b/include/connectivity/dbtools.hxx
@@ -332,7 +332,7 @@ namespace dbtools
OOO_DLLPUBLIC_DBTOOLS
bool isDataSourcePropertyEnabled(const css::uno::Reference< css::uno::XInterface>& _xProp,
const OUString& _sProperty,
- bool _bDefault = false);
+ bool _bDefault);
/** retrieves a particular indirect data source setting
@@ -509,7 +509,7 @@ namespace dbtools
OOO_DLLPUBLIC_DBTOOLS OUString createUniqueName(
const css::uno::Sequence< OUString >& _rNames,
const OUString& _rBaseName,
- bool _bStartWithNumber = true
+ bool _bStartWithNumber
);
/** create a name which is a valid SQL 92 identifier name
@@ -590,7 +590,7 @@ namespace dbtools
sal_Int32 parameterIndex,
const ::connectivity::ORowSetValue& x,
sal_Int32 sqlType,
- sal_Int32 scale=0) throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ sal_Int32 scale) throw(css::sdbc::SQLException, css::uno::RuntimeException);
/** implements <method scope="com.sun.star.sdb">XParameters::setObject</method>
@@ -622,7 +622,7 @@ namespace dbtools
OUString createStandardCreateStatement( const css::uno::Reference< css::beans::XPropertySet >& descriptor,
const css::uno::Reference< css::sdbc::XConnection>& _xConnection,
ISQLStatementHelper* _pHelper,
- const OUString& _sCreatePattern = OUString());
+ const OUString& _sCreatePattern);
/** creates the standard sql statement for the key part of a create table statement.
@param descriptor
@@ -704,7 +704,7 @@ namespace dbtools
const css::uno::Reference< css::sdbc::XConnection>& _xConnection,
const OUString& _rName,
bool _bCase,
- bool _bQueryForInfo = true,
+ bool _bQueryForInfo,
bool _bIsAutoIncrement = false,
bool _bIsCurrency = false,
sal_Int32 _nDataType = css::sdbc::DataType::OTHER);
diff --git a/include/drawinglayer/primitive2d/graphicprimitivehelper2d.hxx b/include/drawinglayer/primitive2d/graphicprimitivehelper2d.hxx
index 151473ba5bbe..9e5b540b4e61 100644
--- a/include/drawinglayer/primitive2d/graphicprimitivehelper2d.hxx
+++ b/include/drawinglayer/primitive2d/graphicprimitivehelper2d.hxx
@@ -51,7 +51,7 @@ namespace drawinglayer
*/
Primitive2DContainer create2DColorModifierEmbeddingsAsNeeded(
const Primitive2DContainer& rChildren,
- GraphicDrawMode aGraphicDrawMode = GRAPHICDRAWMODE_STANDARD,
+ GraphicDrawMode aGraphicDrawMode,
double fLuminance = 0.0, // [-1.0 .. 1.0]
double fContrast = 0.0, // [-1.0 .. 1.0]
double fRed = 0.0, // [-1.0 .. 1.0]
diff --git a/include/editeng/AccessibleImageBullet.hxx b/include/editeng/AccessibleImageBullet.hxx
index f13908fb23ff..aaa94826b3f9 100644
--- a/include/editeng/AccessibleImageBullet.hxx
+++ b/include/editeng/AccessibleImageBullet.hxx
@@ -145,7 +145,7 @@ namespace accessibility
sal_Int32 GetParagraphIndex() const { return mnParagraphIndex; }
/// Calls all Listener objects to tell them the change. Don't hold locks when calling this!
- void FireEvent(const sal_Int16 nEventId, const css::uno::Any& rNewValue = css::uno::Any(), const css::uno::Any& rOldValue = css::uno::Any() ) const;
+ void FireEvent(const sal_Int16 nEventId, const css::uno::Any& rNewValue, const css::uno::Any& rOldValue = css::uno::Any() ) const;
private:
AccessibleImageBullet( const AccessibleImageBullet& ) = delete;
diff --git a/include/editeng/borderline.hxx b/include/editeng/borderline.hxx
index bd8cb5a0df71..cc0a33f556a5 100644
--- a/include/editeng/borderline.hxx
+++ b/include/editeng/borderline.hxx
@@ -84,7 +84,7 @@ namespace editeng {
bool HasGapColor() const { return m_pColorGapFn != nullptr; }
Color GetColorGap() const;
- void SetWidth( long nWidth = 0 );
+ void SetWidth( long nWidth );
/** Guess the style and width from the three lines widths values.
When the value of nStyle is SvxBorderLine::DOUBLE, the style set will be guessed
diff --git a/include/editeng/boxitem.hxx b/include/editeng/boxitem.hxx
index 83c42e296810..73f66d9cc982 100644
--- a/include/editeng/boxitem.hxx
+++ b/include/editeng/boxitem.hxx
@@ -106,7 +106,7 @@ public:
void SetDistance( sal_uInt16 nNew, SvxBoxItemLine nLine );
inline void SetAllDistances( sal_uInt16 nNew );
- void SetRemoveAdjacentCellBorder( bool bSet = true ) { bRemoveAdjCellBorder = bSet; }
+ void SetRemoveAdjacentCellBorder( bool bSet ) { bRemoveAdjCellBorder = bSet; }
// Line width plus Space plus inward distance
// bIgnoreLine = TRUE -> Also return distance, when no Line is set
diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx
index a20c996be8bc..d30b3b00dca1 100644
--- a/include/editeng/editeng.hxx
+++ b/include/editeng/editeng.hxx
@@ -158,7 +158,7 @@ private:
EditEngine( const EditEngine& ) = delete;
EditEngine& operator=( const EditEngine& ) = delete;
- EDITENG_DLLPRIVATE bool PostKeyEvent( const KeyEvent& rKeyEvent, EditView* pView, vcl::Window* pFrameWin = nullptr );
+ EDITENG_DLLPRIVATE bool PostKeyEvent( const KeyEvent& rKeyEvent, EditView* pView, vcl::Window* pFrameWin );
EDITENG_DLLPRIVATE void CursorMoved(ContentNode* pPrevNode);
EDITENG_DLLPRIVATE void CheckIdleFormatter();
@@ -227,7 +227,7 @@ public:
void InsertView(EditView* pEditView, size_t nIndex = EE_APPEND);
EditView* RemoveView( EditView* pEditView );
- void RemoveView(size_t nIndex = EE_APPEND);
+ void RemoveView(size_t nIndex);
EditView* GetView(size_t nIndex = 0) const;
size_t GetViewCount() const;
bool HasView( EditView* pView ) const;
@@ -326,7 +326,7 @@ public:
void RemoveAttribs( const ESelection& rSelection, bool bRemoveParaAttribs, sal_uInt16 nWhich );
- void ShowParagraph( sal_Int32 nParagraph, bool bShow = true );
+ void ShowParagraph( sal_Int32 nParagraph, bool bShow );
::svl::IUndoManager& GetUndoManager();
::svl::IUndoManager* SetUndoManager(::svl::IUndoManager* pNew);
@@ -358,7 +358,7 @@ public:
long GetFirstLineStartX( sal_Int32 nParagraph );
Point GetDocPosTopLeft( sal_Int32 nParagraph );
Point GetDocPos( const Point& rPaperPos ) const;
- bool IsTextPos( const Point& rPaperPos, sal_uInt16 nBorder = 0 );
+ bool IsTextPos( const Point& rPaperPos, sal_uInt16 nBorder );
// StartDocPos corresponds to VisArea.TopLeft().
void Draw( OutputDevice* pOutDev, const Rectangle& rOutRect );
@@ -395,7 +395,7 @@ public:
void QuickDelete( const ESelection& rSel );
void QuickMarkToBeRepainted( sal_Int32 nPara );
- void SetGlobalCharStretching( sal_uInt16 nX = 100, sal_uInt16 nY = 100 );
+ void SetGlobalCharStretching( sal_uInt16 nX, sal_uInt16 nY = 100 );
void GetGlobalCharStretching( sal_uInt16& rX, sal_uInt16& rY ) const;
void SetEditTextObjectPool( SfxItemPool* pPool );
@@ -547,7 +547,7 @@ public:
EditPaM CreateEditPaM(const EPaM& rEPaM);
EditPaM ConnectParagraphs(
- ContentNode* pLeft, ContentNode* pRight, bool bBackward = false);
+ ContentNode* pLeft, ContentNode* pRight, bool bBackward);
EditPaM InsertField(const EditSelection& rEditSelection, const SvxFieldItem& rFld);
EditPaM InsertText(const EditSelection& aCurEditSelection, const OUString& rStr);
@@ -593,13 +593,13 @@ public:
EditSelection MoveParagraphs(const Range& rParagraphs, sal_Int32 nNewPos, EditView* pCurView);
void RemoveCharAttribs(sal_Int32 nPara, sal_uInt16 nWhich = 0, bool bRemoveFeatures = false);
- void RemoveCharAttribs(const EditSelection& rSel, bool bRemoveParaAttribs, sal_uInt16 nWhich = 0);
+ void RemoveCharAttribs(const EditSelection& rSel, bool bRemoveParaAttribs, sal_uInt16 nWhich);
ViewsType& GetEditViews();
const ViewsType& GetEditViews() const;
void SetUndoMode(bool b);
- void FormatAndUpdate(EditView* pCurView = nullptr);
+ void FormatAndUpdate(EditView* pCurView);
void Undo(EditView* pView);
void Redo(EditView* pView);
diff --git a/include/editeng/editobj.hxx b/include/editeng/editobj.hxx
index a3ab3a9e5bb5..6920d0628c10 100644
--- a/include/editeng/editobj.hxx
+++ b/include/editeng/editobj.hxx
@@ -110,7 +110,7 @@ public:
void GetCharAttribs( sal_Int32 nPara, std::vector<EECharAttrib>& rLst ) const;
- bool RemoveCharAttribs( sal_uInt16 nWhich = 0 );
+ bool RemoveCharAttribs( sal_uInt16 nWhich );
/**
* Get all text sections in this content. Sections are non-overlapping
diff --git a/include/editeng/editview.hxx b/include/editeng/editview.hxx
index 3175cd0d10c8..7c28a75e387e 100644
--- a/include/editeng/editview.hxx
+++ b/include/editeng/editview.hxx
@@ -174,10 +174,10 @@ public:
SfxItemSet GetAttribs();
void SetAttribs( const SfxItemSet& rSet );
void RemoveAttribs( bool bRemoveParaAttribs = false, sal_uInt16 nWhich = 0 );
- void RemoveCharAttribs( sal_Int32 nPara, sal_uInt16 nWhich = 0 );
- void RemoveAttribsKeepLanguages( bool bRemoveParaAttribs = false );
+ void RemoveCharAttribs( sal_Int32 nPara, sal_uInt16 nWhich );
+ void RemoveAttribsKeepLanguages( bool bRemoveParaAttribs );
- sal_uInt32 Read( SvStream& rInput, const OUString& rBaseURL, EETextFormat eFormat, SvKeyValueIterator* pHTTPHeaderAttrs = nullptr );
+ sal_uInt32 Read( SvStream& rInput, const OUString& rBaseURL, EETextFormat eFormat, SvKeyValueIterator* pHTTPHeaderAttrs );
void SetBackgroundColor( const Color& rColor );
Color GetBackgroundColor() const;
@@ -217,7 +217,7 @@ public:
bool IsCursorAtWrongSpelledWord();
bool IsWrongSpelledWordAtPos( const Point& rPosPixel, bool bMarkIfWrong = false );
- void ExecuteSpellPopup( const Point& rPosPixel, Link<SpellCallbackInfo&,void>* pCallBack = nullptr );
+ void ExecuteSpellPopup( const Point& rPosPixel, Link<SpellCallbackInfo&,void>* pCallBack );
void InsertField( const SvxFieldItem& rFld );
const SvxFieldItem* GetFieldUnderMousePointer() const;
diff --git a/include/editeng/lrspitem.hxx b/include/editeng/lrspitem.hxx
index 064d68a640e6..084fcb263f2e 100644
--- a/include/editeng/lrspitem.hxx
+++ b/include/editeng/lrspitem.hxx
@@ -115,7 +115,7 @@ public:
inline void SetTextFirstLineOfst( const short nF, const sal_uInt16 nProp = 100 );
inline short GetTextFirstLineOfst() const { return nFirstLineOfst; }
- inline void SetPropTextFirstLineOfst( const sal_uInt16 nProp = 100 )
+ inline void SetPropTextFirstLineOfst( const sal_uInt16 nProp )
{ nPropFirstLineOfst = nProp; }
inline sal_uInt16 GetPropTextFirstLineOfst() const
{ return nPropFirstLineOfst; }
diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx
index 90df8d6cc872..913f6f9f60b6 100644
--- a/include/editeng/outliner.hxx
+++ b/include/editeng/outliner.hxx
@@ -256,7 +256,7 @@ public:
void AdjustHeight( long nDY );
- sal_uLong Read( SvStream& rInput, const OUString& rBaseURL, EETextFormat eFormat, SvKeyValueIterator* pHTTPHeaderAttrs = nullptr );
+ sal_uLong Read( SvStream& rInput, const OUString& rBaseURL, EETextFormat eFormat, SvKeyValueIterator* pHTTPHeaderAttrs );
void InsertText( const OUString& rNew, bool bSelect = false );
void InsertText( const OutlinerParaObject& rParaObj );
@@ -307,7 +307,7 @@ public:
void SetSelection( const ESelection& );
void GetSelectionRectangles(std::vector<Rectangle>& rLogicRects) const;
- void RemoveAttribs( bool bRemoveParaAttribs = false, bool bKeepLanguages = false );
+ void RemoveAttribs( bool bRemoveParaAttribs, bool bKeepLanguages = false );
void RemoveAttribsKeepLanguages( bool bRemoveParaAttribs );
bool HasSelection() const;
@@ -323,7 +323,7 @@ public:
void ToggleBulletsNumbering(
const bool bToggle,
const bool bHandleBullets,
- const SvxNumRule* pNumRule = nullptr );
+ const SvxNumRule* pNumRule );
/** apply bullets/numbering for paragraphs
@@ -360,7 +360,7 @@ public:
bool IsCursorAtWrongSpelledWord();
bool IsWrongSpelledWordAtPos( const Point& rPosPixel, bool bMarkIfWrong = false );
- void ExecuteSpellPopup( const Point& rPosPixel, Link<SpellCallbackInfo&,void>* pCallBack = nullptr );
+ void ExecuteSpellPopup( const Point& rPosPixel, Link<SpellCallbackInfo&,void>* pCallBack );
void SetInvalidateMore( sal_uInt16 nPixel );
sal_uInt16 GetInvalidateMore() const;
@@ -942,7 +942,7 @@ public:
sal_uLong GetTextHeight( sal_Int32 nParagraph ) const;
Point GetDocPosTopLeft( sal_Int32 nParagraph );
Point GetDocPos( const Point& rPaperPos ) const;
- bool IsTextPos( const Point& rPaperPos, sal_uInt16 nBorder = 0 );
+ bool IsTextPos( const Point& rPaperPos, sal_uInt16 nBorder );
bool IsTextPos( const Point& rPaperPos, sal_uInt16 nBorder, bool* pbBulletPos );
void SetGlobalCharStretching( sal_uInt16 nX = 100, sal_uInt16 nY = 100 );
diff --git a/include/editeng/paperinf.hxx b/include/editeng/paperinf.hxx
index d135170582c7..566e741b81e0 100644
--- a/include/editeng/paperinf.hxx
+++ b/include/editeng/paperinf.hxx
@@ -39,7 +39,7 @@ public:
static Size GetDefaultPaperSize( MapUnit eUnit = MAP_TWIP );
static Size GetPaperSize( Paper ePaper, MapUnit eUnit = MAP_TWIP );
static Size GetPaperSize( const Printer* pPrinter );
- static Paper GetSvxPaper( const Size &rSize, MapUnit eUnit = MAP_TWIP, bool bSloppy = false );
+ static Paper GetSvxPaper( const Size &rSize, MapUnit eUnit, bool bSloppy = false );
static long GetSloppyPaperDimension( long nSize );
static OUString GetName( Paper ePaper );
};
diff --git a/include/editeng/svxacorr.hxx b/include/editeng/svxacorr.hxx
index d5dc16da4654..dbe2704ba728 100644
--- a/include/editeng/svxacorr.hxx
+++ b/include/editeng/svxacorr.hxx
@@ -329,49 +329,42 @@ public:
void SetAutoCorrFlag( long nFlag, bool bOn = true );
// Load, Set, Get - the replacement list
- SvxAutocorrWordList* LoadAutocorrWordList(
- LanguageType eLang = LANGUAGE_SYSTEM )
+ SvxAutocorrWordList* LoadAutocorrWordList( LanguageType eLang )
{ return GetLanguageList_( eLang ).LoadAutocorrWordList(); }
// Save word substitutions:
// Save these directly in the storage. The word list is updated
// accordingly!
// - pure Text
- bool PutText( const OUString& rShort, const OUString& rLong, LanguageType eLang = LANGUAGE_SYSTEM );
+ bool PutText( const OUString& rShort, const OUString& rLong, LanguageType eLang );
// - Text with attribution (only in the SWG - SWG format!)
- void PutText( const OUString& rShort, SfxObjectShell& rShell,
- LanguageType eLang = LANGUAGE_SYSTEM )
+ void PutText( const OUString& rShort, SfxObjectShell& rShell, LanguageType eLang )
{ GetLanguageList_( eLang ).PutText(rShort, rShell ); }
void MakeCombinedChanges( std::vector<SvxAutocorrWord>& aNewEntries,
std::vector<SvxAutocorrWord>& aDeleteEntries,
- LanguageType eLang = LANGUAGE_SYSTEM );
+ LanguageType eLang );
// Load, Set, Get - the exception list for capital letters at the
// beginning of a sentence
void SaveCplSttExceptList( LanguageType eLang = LANGUAGE_SYSTEM );
- SvStringsISortDtor* LoadCplSttExceptList(
- LanguageType eLang = LANGUAGE_SYSTEM)
+ SvStringsISortDtor* LoadCplSttExceptList(LanguageType eLang)
{ return GetLanguageList_( eLang ).LoadCplSttExceptList(); }
- const SvStringsISortDtor* GetCplSttExceptList(
- LanguageType eLang = LANGUAGE_SYSTEM )
+ const SvStringsISortDtor* GetCplSttExceptList( LanguageType eLang )
{ return GetLanguageList_( eLang ).GetCplSttExceptList(); }
// Adds a single word. The list will be immediately written to the file!
- bool AddCplSttException( const OUString& rNew,
- LanguageType eLang = LANGUAGE_SYSTEM );
+ bool AddCplSttException( const OUString& rNew, LanguageType eLang );
// Load, Set, Get the exception list for 2 Capital letters at the
// beginning of a word.
- void SaveWrdSttExceptList( LanguageType eLang = LANGUAGE_SYSTEM );
- SvStringsISortDtor* LoadWrdSttExceptList(
- LanguageType eLang = LANGUAGE_SYSTEM )
+ void SaveWrdSttExceptList( LanguageType eLang );
+ SvStringsISortDtor* LoadWrdSttExceptList( LanguageType eLang )
{ return GetLanguageList_( eLang ).LoadWrdSttExceptList(); }
- const SvStringsISortDtor* GetWrdSttExceptList(
- LanguageType eLang = LANGUAGE_SYSTEM )
+ const SvStringsISortDtor* GetWrdSttExceptList( LanguageType eLang )
{ return GetLanguageList_( eLang ).GetWrdSttExceptList(); }
// Adds a single word. The list will be immediately written to the file!
- bool AddWrtSttException( const OUString& rNew, LanguageType eLang = LANGUAGE_SYSTEM);
+ bool AddWrtSttException( const OUString& rNew, LanguageType eLang);
// Search through the Languages for the entry
bool FindInWrdSttExceptList( LanguageType eLang, const OUString& sWord );
@@ -381,27 +374,27 @@ public:
// Methods for the auto-correction
bool FnCapitalStartWord( SvxAutoCorrDoc&, const OUString&,
sal_Int32 nSttPos, sal_Int32 nEndPos,
- LanguageType eLang = LANGUAGE_SYSTEM );
+ LanguageType eLang );
bool FnChgOrdinalNumber( SvxAutoCorrDoc&, const OUString&,
sal_Int32 nSttPos, sal_Int32 nEndPos,
- LanguageType eLang = LANGUAGE_SYSTEM );
+ LanguageType eLang );
bool FnChgToEnEmDash( SvxAutoCorrDoc&, const OUString&,
sal_Int32 nSttPos, sal_Int32 nEndPos,
- LanguageType eLang = LANGUAGE_SYSTEM );
+ LanguageType eLang );
bool FnAddNonBrkSpace( SvxAutoCorrDoc&, const OUString&,
sal_Int32 nSttPos, sal_Int32 nEndPos,
- LanguageType eLang = LANGUAGE_SYSTEM );
+ LanguageType eLang );
bool FnSetINetAttr( SvxAutoCorrDoc&, const OUString&,
sal_Int32 nSttPos, sal_Int32 nEndPos,
- LanguageType eLang = LANGUAGE_SYSTEM );
+ LanguageType eLang );
bool FnChgWeightUnderl( SvxAutoCorrDoc&, const OUString&,
sal_Int32 nSttPos, sal_Int32 nEndPos );
bool FnCapitalStartSentence( SvxAutoCorrDoc&, const OUString&, bool bNormalPos,
sal_Int32 nSttPos, sal_Int32 nEndPos,
- LanguageType eLang = LANGUAGE_SYSTEM);
+ LanguageType eLang);
bool FnCorrectCapsLock( SvxAutoCorrDoc&, const OUString&,
sal_Int32 nSttPos, sal_Int32 nEndPos,
- LanguageType eLang = LANGUAGE_SYSTEM );
+ LanguageType eLang );
bool HasRunNext() { return bRunNext; }
diff --git a/include/editeng/unoedprx.hxx b/include/editeng/unoedprx.hxx
index 8ec9c616b083..68b96f373bab 100644
--- a/include/editeng/unoedprx.hxx
+++ b/include/editeng/unoedprx.hxx
@@ -147,7 +147,7 @@ public:
SvxAccessibleTextAdapter* GetTextForwarderAdapter(); // covariant return types don't work on MSVC
virtual SvxViewForwarder* GetViewForwarder() override;
virtual SvxEditViewForwarder* GetEditViewForwarder( bool bCreate = false ) override;
- SvxAccessibleTextEditViewAdapter* GetEditViewForwarderAdapter( bool bCreate = false ); // covariant return types don't work on MSVC
+ SvxAccessibleTextEditViewAdapter* GetEditViewForwarderAdapter( bool bCreate ); // covariant return types don't work on MSVC
virtual void UpdateData() override;
virtual SfxBroadcaster& GetBroadcaster() const override;
diff --git a/include/filter/msfilter/escherex.hxx b/include/filter/msfilter/escherex.hxx
index b541b36a48a5..e71ec4715264 100644
--- a/include/filter/msfilter/escherex.hxx
+++ b/include/filter/msfilter/escherex.hxx
@@ -688,7 +688,7 @@ public:
sal_uInt32 GetBlibStoreContainerSize( SvStream* pMergePicStreamBSE = nullptr ) const;
void WriteBlibStoreContainer( SvStream& rStrm, SvStream* pMergePicStreamBSE = nullptr );
void WriteBlibStoreEntry(SvStream& rStrm, sal_uInt32 nBlipId,
- bool bWritePictureOffset, sal_uInt32 nResize = 0);
+ bool bWritePictureOffset, sal_uInt32 nResize);
sal_uInt32 GetBlibID(
SvStream& rPicOutStream,
const OString& rGraphicId,
@@ -1233,7 +1233,7 @@ public:
void AddChildAnchor( const Rectangle& rRectangle );
void AddClientAnchor( const Rectangle& rRectangle );
- virtual sal_uInt32 EnterGroup( const OUString& rShapeName, const Rectangle* pBoundRect = nullptr );
+ virtual sal_uInt32 EnterGroup( const OUString& rShapeName, const Rectangle* pBoundRect );
sal_uInt32 EnterGroup( const Rectangle* pBoundRect = nullptr );
sal_uInt32 GetGroupLevel() const { return mnGroupLevel; };
void SetGroupSnapRect( sal_uInt32 nGroupLevel, const Rectangle& rRect );
@@ -1246,7 +1246,7 @@ public:
virtual void Commit( EscherPropertyContainer& rProps, const Rectangle& rRect);
static sal_uInt32 GetColor( const sal_uInt32 nColor );
- static sal_uInt32 GetColor( const Color& rColor, bool bSwap = true );
+ static sal_uInt32 GetColor( const Color& rColor, bool bSwap );
// ...Sdr... implemented in eschesdo.cxx
diff --git a/include/filter/msfilter/msdffimp.hxx b/include/filter/msfilter/msdffimp.hxx
index 9cbf2e18ac33..3eca3ca8300b 100644
--- a/include/filter/msfilter/msdffimp.hxx
+++ b/include/filter/msfilter/msdffimp.hxx
@@ -100,7 +100,7 @@ public:
void SetDefaultPropSet( SvStream& rIn, sal_uInt32 nOffDgg ) const;
void ApplyAttributes( SvStream& rIn, SfxItemSet& rSet ) const;
void ApplyAttributes( SvStream& rIn, SfxItemSet& rSet, DffObjData& rObjData ) const;
- void ImportGradientColor( SfxItemSet& aSet, MSO_FillType eMSO_FillType, double dTrans = 1.0 , double dBackTrans = 1.0 ) const;
+ void ImportGradientColor( SfxItemSet& aSet, MSO_FillType eMSO_FillType, double dTrans, double dBackTrans = 1.0 ) const;
};
#define COL_DEFAULT RGB_COLORDATA( 0xFA, 0xFB, 0xFC )
@@ -501,13 +501,13 @@ protected:
DffObjData& rData,
void* pData,
Rectangle& rTextRect,
- SdrObject* pObj = nullptr);
+ SdrObject* pObj);
/** Object finalization, used by the Excel filter to correctly
compute the object anchoring after nested objects have been imported.
*/
virtual SdrObject* FinalizeObj(DffObjData& rData,
- SdrObject* pObj = nullptr);
+ SdrObject* pObj);
virtual bool GetColorFromPalette(sal_uInt16 nNum, Color& rColor) const;
@@ -555,7 +555,7 @@ public:
static OUString MSDFFReadZString( SvStream& rIn,
sal_uInt32 nMaxLen,
- bool bUniCode = false);
+ bool bUniCode);
static bool ReadCommonRecordHeader( SvStream& rSt,
sal_uInt8& rVer,
@@ -661,14 +661,14 @@ public:
void* pData,
Rectangle& rClientRect,
const Rectangle& rGlobalChildRect,
- int nCalledByGroup = 0,
+ int nCalledByGroup,
sal_Int32* pShapeId = nullptr );
SdrObject* ImportShape( const DffRecordHeader& rHd,
SvStream& rSt,
void* pData,
Rectangle& rClientRect,
const Rectangle& rGlobalChildRect,
- int nCalledByGroup = 0,
+ int nCalledByGroup,
sal_Int32* pShapeId = nullptr);
Rectangle GetGlobalChildAnchor( const DffRecordHeader& rHd,
@@ -724,7 +724,7 @@ public:
const css::uno::Any& rAny,
const css::uno::Reference< css::beans::XPropertySet > & rXPropSet,
const OUString& rPropertyName,
- bool bTestPropertyAvailability = false
+ bool bTestPropertyAvailability
);
void insertShapeId( sal_Int32 nShapeId, SdrObject* pShape );
diff --git a/include/filter/msfilter/rtfutil.hxx b/include/filter/msfilter/rtfutil.hxx
index 12ccb42c9a14..4db8c5243e11 100644
--- a/include/filter/msfilter/rtfutil.hxx
+++ b/include/filter/msfilter/rtfutil.hxx
@@ -24,7 +24,7 @@ namespace rtfutil {
MSFILTER_DLLPUBLIC OString OutHex(sal_uLong nHex, sal_uInt8 nLen);
/// Handles correct unicode and legacy export of a single character.
-MSFILTER_DLLPUBLIC OString OutChar(sal_Unicode c, int *pUCMode, rtl_TextEncoding eDestEnc, bool* pSuccess = nullptr, bool bUnicode = true);
+MSFILTER_DLLPUBLIC OString OutChar(sal_Unicode c, int *pUCMode, rtl_TextEncoding eDestEnc, bool* pSuccess, bool bUnicode = true);
/**
* Handles correct unicode and legacy export of a string.
diff --git a/include/filter/msfilter/svdfppt.hxx b/include/filter/msfilter/svdfppt.hxx
index a32a492da887..ee893ad42932 100644
--- a/include/filter/msfilter/svdfppt.hxx
+++ b/include/filter/msfilter/svdfppt.hxx
@@ -471,7 +471,7 @@ public:
PptFontEntityAtom* GetFontEnityAtom( sal_uInt32 nNum ) const;
void RecolorGraphic( SvStream& rSt, sal_uInt32 nRecLen, Graphic& rGraph );
virtual SdrObject* ReadObjText( PPTTextObj* pTextObj, SdrObject* pObj, SdPageCapsule pPage ) const;
- virtual SdrObject* ProcessObj( SvStream& rSt, DffObjData& rData, void* pData, Rectangle& rTextRect, SdrObject* pObj = nullptr ) override;
+ virtual SdrObject* ProcessObj( SvStream& rSt, DffObjData& rData, void* pData, Rectangle& rTextRect, SdrObject* pObj ) override;
virtual void ProcessClientAnchor2( SvStream& rSt, DffRecordHeader& rHd, void* pData, DffObjData& rObj ) override;
void ImportHeaderFooterContainer( DffRecordHeader& rHeader, HeaderFooterEntry& rEntry );
};
@@ -560,8 +560,8 @@ protected:
protected:
using SdrEscherImport::ReadObjText;
- bool SeekToAktPage(DffRecordHeader* pRecHd=nullptr) const;
- bool SeekToDocument(DffRecordHeader* pRecHd=nullptr) const;
+ bool SeekToAktPage(DffRecordHeader* pRecHd) const;
+ bool SeekToDocument(DffRecordHeader* pRecHd) const;
static bool SeekToContentOfProgTag(
sal_Int32 nVersion,
SvStream& rSt,
@@ -619,7 +619,7 @@ public:
PptPageKind ePageKind = PPT_SLIDEPAGE
) const;
- void ImportPage( SdrPage* pPage, const PptSlidePersistEntry* pMasterPersist = nullptr );
+ void ImportPage( SdrPage* pPage, const PptSlidePersistEntry* pMasterPersist );
virtual bool GetColorFromPalette(sal_uInt16 nNum, Color& rColor) const override;
virtual bool SeekToShape( SvStream& rSt, void* pClientData, sal_uInt32 nId ) const override;
virtual const PptSlideLayoutAtom* GetSlideLayoutAtom() const override;
@@ -1294,7 +1294,7 @@ public:
mpPPTImporter ( pPPTImporter )
{};
bool ReadOCXStream( tools::SvRef<SotStorage>& rSrc1,
- css::uno::Reference<css::drawing::XShape > *pShapeRef=nullptr );
+ css::uno::Reference<css::drawing::XShape > *pShapeRef );
virtual bool InsertControl(
const css::uno::Reference< css::form::XFormComponent > &rFComp,
const css::awt::Size& rSize,
diff --git a/include/formula/FormulaCompiler.hxx b/include/formula/FormulaCompiler.hxx
index 0b2486b5f146..5d0e3daf64dc 100644
--- a/include/formula/FormulaCompiler.hxx
+++ b/include/formula/FormulaCompiler.hxx
@@ -317,7 +317,7 @@ protected:
void NotLine();
OpCode Expression();
void PopTokenArray();
- void PushTokenArray( FormulaTokenArray*, bool = false );
+ void PushTokenArray( FormulaTokenArray*, bool );
bool MergeRangeReference( FormulaToken * * const pCode1, FormulaToken * const * const pCode2 );
diff --git a/include/formula/IControlReferenceHandler.hxx b/include/formula/IControlReferenceHandler.hxx
index 38586f191fde..e1096c47ae38 100644
--- a/include/formula/IControlReferenceHandler.hxx
+++ b/include/formula/IControlReferenceHandler.hxx
@@ -33,7 +33,7 @@ namespace formula
virtual void ShowReference(const OUString& _sRef) = 0;
virtual void HideReference( bool bDoneRefMode = true ) = 0;
virtual void ReleaseFocus( RefEdit* pEdit ) = 0;
- virtual void ToggleCollapsed( RefEdit* pEdit, RefButton* pButton = nullptr ) = 0;
+ virtual void ToggleCollapsed( RefEdit* pEdit, RefButton* pButton ) = 0;
protected:
~IControlReferenceHandler() {}
diff --git a/include/formula/formula.hxx b/include/formula/formula.hxx
index 94b12c39276d..ac5aa57a70d8 100644
--- a/include/formula/formula.hxx
+++ b/include/formula/formula.hxx
@@ -75,8 +75,8 @@ private:
protected:
virtual bool PreNotify( NotifyEvent& rNEvt ) override;
- ::std::pair<RefButton*,RefEdit*> RefInputStartBefore( RefEdit* pEdit, RefButton* pButton = nullptr );
- void RefInputStartAfter( RefEdit* pEdit, RefButton* pButton = nullptr );
+ ::std::pair<RefButton*,RefEdit*> RefInputStartBefore( RefEdit* pEdit, RefButton* pButton );
+ void RefInputStartAfter( RefEdit* pEdit, RefButton* pButton );
void RefInputDoneAfter();
void SetMeText(const OUString& _sText);
@@ -114,9 +114,9 @@ protected:
protected:
virtual bool PreNotify( NotifyEvent& rNEvt ) override;
- ::std::pair<RefButton*,RefEdit*> RefInputStartBefore( RefEdit* pEdit, RefButton* pButton = nullptr );
- void RefInputStartAfter( RefEdit* pEdit, RefButton* pButton = nullptr );
- void RefInputDoneAfter( bool bForced = false );
+ ::std::pair<RefButton*,RefEdit*> RefInputStartBefore( RefEdit* pEdit, RefButton* pButton );
+ void RefInputStartAfter( RefEdit* pEdit, RefButton* pButton );
+ void RefInputDoneAfter( bool bForced );
void SetMeText(const OUString& _sText);
FormulaDlgMode SetMeText(const OUString& _sText, sal_Int32 PrivStart, sal_Int32 PrivEnd, bool bMatrix, bool _bSelect, bool _bUpdate);
diff --git a/include/oox/export/vmlexport.hxx b/include/oox/export/vmlexport.hxx
index 6624cdfb72bd..618dd7528384 100644
--- a/include/oox/export/vmlexport.hxx
+++ b/include/oox/export/vmlexport.hxx
@@ -147,7 +147,7 @@ private:
virtual void OpenContainer( sal_uInt16 nEscherContainer, int nRecInstance = 0 ) override;
virtual void CloseContainer() override;
- virtual sal_uInt32 EnterGroup( const OUString& rShapeName, const Rectangle* pBoundRect = nullptr ) override;
+ virtual sal_uInt32 EnterGroup( const OUString& rShapeName, const Rectangle* pBoundRect ) override;
virtual void LeaveGroup() override;
virtual void AddShape( sal_uInt32 nShapeType, sal_uInt32 nShapeFlags, sal_uInt32 nShapeId = 0 ) override;