summaryrefslogtreecommitdiff
path: root/basegfx/inc/basegfx
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-07-03 08:53:24 +0200
committerDavid Tardon <dtardon@redhat.com>2012-07-03 17:47:18 +0200
commit9bd1acd164a9f8f4188ca06527ccc0fece7d0c19 (patch)
treeea82824dfc4c591d502ae28d5d1efed206f2090e /basegfx/inc/basegfx
parentfddd006495f0c8584c85ff22ad0041094ea9a8cd (diff)
sprinkle explicit over constructors
Change-Id: I6599147a74e5c99f964b08935ec7c77f2d4cadef
Diffstat (limited to 'basegfx/inc/basegfx')
-rw-r--r--basegfx/inc/basegfx/color/bcolor.hxx2
-rw-r--r--basegfx/inc/basegfx/curve/b2dbeziertools.hxx2
-rw-r--r--basegfx/inc/basegfx/point/b2dpoint.hxx2
-rw-r--r--basegfx/inc/basegfx/range/basicbox.hxx2
-rw-r--r--basegfx/inc/basegfx/range/basicrange.hxx2
-rw-r--r--basegfx/inc/basegfx/vector/b2dvector.hxx2
6 files changed, 6 insertions, 6 deletions
diff --git a/basegfx/inc/basegfx/color/bcolor.hxx b/basegfx/inc/basegfx/color/bcolor.hxx
index 1a1c6eaf8ffd..452731001c4b 100644
--- a/basegfx/inc/basegfx/color/bcolor.hxx
+++ b/basegfx/inc/basegfx/color/bcolor.hxx
@@ -81,7 +81,7 @@ namespace basegfx
@param fLuminosity
The parameter is used to initialize the red, green and blue intensities of the color
*/
- BColor(double fLuminosity)
+ explicit BColor(double fLuminosity)
: B3DTuple(fLuminosity, fLuminosity, fLuminosity)
{}
diff --git a/basegfx/inc/basegfx/curve/b2dbeziertools.hxx b/basegfx/inc/basegfx/curve/b2dbeziertools.hxx
index 821cc33c723f..a6eda0a2a759 100644
--- a/basegfx/inc/basegfx/curve/b2dbeziertools.hxx
+++ b/basegfx/inc/basegfx/curve/b2dbeziertools.hxx
@@ -52,7 +52,7 @@ namespace basegfx
sal_uInt32 mnEdgeCount;
public:
- B2DCubicBezierHelper(const B2DCubicBezier& rBase, sal_uInt32 nDivisions = 9);
+ explicit B2DCubicBezierHelper(const B2DCubicBezier& rBase, sal_uInt32 nDivisions = 9);
double getLength() const { if(!maLengthArray.empty()) return maLengthArray[maLengthArray.size() - 1]; else return 0.0; }
double distanceToRelative(double fDistance) const;
diff --git a/basegfx/inc/basegfx/point/b2dpoint.hxx b/basegfx/inc/basegfx/point/b2dpoint.hxx
index c5b69b8c01d3..9c8056abe7d9 100644
--- a/basegfx/inc/basegfx/point/b2dpoint.hxx
+++ b/basegfx/inc/basegfx/point/b2dpoint.hxx
@@ -87,7 +87,7 @@ namespace basegfx
@param rPoint
The 2D Point which will be copied.
*/
- B2DPoint(const ::basegfx::B2IPoint& rPoint)
+ explicit B2DPoint(const ::basegfx::B2IPoint& rPoint)
: B2DTuple(rPoint)
{}
diff --git a/basegfx/inc/basegfx/range/basicbox.hxx b/basegfx/inc/basegfx/range/basicbox.hxx
index 8e2e0efb90b7..4b000b582f3c 100644
--- a/basegfx/inc/basegfx/range/basicbox.hxx
+++ b/basegfx/inc/basegfx/range/basicbox.hxx
@@ -47,7 +47,7 @@ namespace basegfx
public:
BasicBox() {}
- BasicBox( sal_Int32 nValue ) :
+ explicit BasicBox( sal_Int32 nValue ) :
Base( nValue )
{
}
diff --git a/basegfx/inc/basegfx/range/basicrange.hxx b/basegfx/inc/basegfx/range/basicrange.hxx
index daf552f56daf..d9fded6b46e7 100644
--- a/basegfx/inc/basegfx/range/basicrange.hxx
+++ b/basegfx/inc/basegfx/range/basicrange.hxx
@@ -52,7 +52,7 @@ namespace basegfx
{
}
- BasicRange( T nValue ) :
+ explicit BasicRange( T nValue ) :
mnMinimum(nValue),
mnMaximum(nValue)
{
diff --git a/basegfx/inc/basegfx/vector/b2dvector.hxx b/basegfx/inc/basegfx/vector/b2dvector.hxx
index 109f64602c24..4c003ebf18c4 100644
--- a/basegfx/inc/basegfx/vector/b2dvector.hxx
+++ b/basegfx/inc/basegfx/vector/b2dvector.hxx
@@ -86,7 +86,7 @@ namespace basegfx
@param rVec
The 2D Vector which will be copied.
*/
- B2DVector(const ::basegfx::B2IVector& rVec)
+ explicit B2DVector(const ::basegfx::B2IVector& rVec)
: B2DTuple(rVec)
{}