Kaydet (Commit) 7a6341e4 authored tarafından Caolán McNamara's avatar Caolán McNamara

cppcheck: noExplicitConstructor

Change-Id: Ie7e0a036c223f9576be3798feb0df95131c1803a
üst 6e62d72b
...@@ -85,7 +85,7 @@ class SwMultiPortion : public SwLinePortion ...@@ -85,7 +85,7 @@ class SwMultiPortion : public SwLinePortion
bool bFlyInCntnt:1; // Fly as character inside bool bFlyInCntnt:1; // Fly as character inside
sal_uInt8 nDirection:2; // Direction (0/90/180/270 degrees) sal_uInt8 nDirection:2; // Direction (0/90/180/270 degrees)
protected: protected:
SwMultiPortion(sal_Int32 nEnd) explicit SwMultiPortion(sal_Int32 nEnd)
: pFldRest(0) : pFldRest(0)
, bTab1(false) , bTab1(false)
, bTab2(false) , bTab2(false)
......
...@@ -29,7 +29,7 @@ class SwTxtFormatInfo; ...@@ -29,7 +29,7 @@ class SwTxtFormatInfo;
class SwTmpEndPortion : public SwLinePortion class SwTmpEndPortion : public SwLinePortion
{ {
public: public:
SwTmpEndPortion( const SwLinePortion &rPortion ); explicit SwTmpEndPortion( const SwLinePortion &rPortion );
virtual void Paint( const SwTxtPaintInfo &rInf ) const SAL_OVERRIDE; virtual void Paint( const SwTxtPaintInfo &rInf ) const SAL_OVERRIDE;
OUTPUT_OPERATOR_OVERRIDE OUTPUT_OPERATOR_OVERRIDE
}; };
...@@ -37,7 +37,7 @@ public: ...@@ -37,7 +37,7 @@ public:
class SwBreakPortion : public SwLinePortion class SwBreakPortion : public SwLinePortion
{ {
public: public:
SwBreakPortion( const SwLinePortion &rPortion ); explicit SwBreakPortion( const SwLinePortion &rPortion );
// Returns 0 if we have no usable data // Returns 0 if we have no usable data
virtual SwLinePortion *Compress() SAL_OVERRIDE; virtual SwLinePortion *Compress() SAL_OVERRIDE;
virtual void Paint( const SwTxtPaintInfo &rInf ) const SAL_OVERRIDE; virtual void Paint( const SwTxtPaintInfo &rInf ) const SAL_OVERRIDE;
...@@ -69,7 +69,7 @@ public: ...@@ -69,7 +69,7 @@ public:
// This constructor only sets the height and ascent to the values // This constructor only sets the height and ascent to the values
// of rPortion. It is only used for kerning portions for grid mode // of rPortion. It is only used for kerning portions for grid mode
SwKernPortion( const SwLinePortion &rPortion ); explicit SwKernPortion( const SwLinePortion &rPortion );
virtual void FormatEOL( SwTxtFormatInfo &rInf ) SAL_OVERRIDE; virtual void FormatEOL( SwTxtFormatInfo &rInf ) SAL_OVERRIDE;
virtual void Paint( const SwTxtPaintInfo &rInf ) const SAL_OVERRIDE; virtual void Paint( const SwTxtPaintInfo &rInf ) const SAL_OVERRIDE;
...@@ -82,8 +82,8 @@ class SwArrowPortion : public SwLinePortion ...@@ -82,8 +82,8 @@ class SwArrowPortion : public SwLinePortion
Point aPos; Point aPos;
bool bLeft; bool bLeft;
public: public:
SwArrowPortion( const SwLinePortion &rPortion ); explicit SwArrowPortion( const SwLinePortion &rPortion );
SwArrowPortion( const SwTxtPaintInfo &rInf ); explicit SwArrowPortion( const SwTxtPaintInfo &rInf );
virtual void Paint( const SwTxtPaintInfo &rInf ) const SAL_OVERRIDE; virtual void Paint( const SwTxtPaintInfo &rInf ) const SAL_OVERRIDE;
virtual SwLinePortion *Compress() SAL_OVERRIDE; virtual SwLinePortion *Compress() SAL_OVERRIDE;
inline bool IsLeft() const { return bLeft; } inline bool IsLeft() const { return bLeft; }
...@@ -99,17 +99,17 @@ class SwHangingPortion : public SwTxtPortion ...@@ -99,17 +99,17 @@ class SwHangingPortion : public SwTxtPortion
{ {
sal_uInt16 nInnerWidth; sal_uInt16 nInnerWidth;
public: public:
inline SwHangingPortion( SwPosSize aSize ) : nInnerWidth( aSize.Width() ) explicit SwHangingPortion( SwPosSize aSize ) : nInnerWidth( aSize.Width() )
{ SetWhichPor( POR_HNG ); SetLen( 1 ); Height( aSize.Height() ); } { SetWhichPor( POR_HNG ); SetLen( 1 ); Height( aSize.Height() ); }
inline sal_uInt16 GetInnerWidth() const { return nInnerWidth; } sal_uInt16 GetInnerWidth() const { return nInnerWidth; }
}; };
// Used to hide text // Used to hide text
class SwHiddenTextPortion : public SwLinePortion class SwHiddenTextPortion : public SwLinePortion
{ {
public: public:
inline SwHiddenTextPortion( sal_Int32 nLen ) explicit SwHiddenTextPortion( sal_Int32 nLen )
{ SetWhichPor( POR_HIDDEN_TXT ); SetLen( nLen ); } { SetWhichPor( POR_HIDDEN_TXT ); SetLen( nLen ); }
virtual void Paint( const SwTxtPaintInfo &rInf ) const SAL_OVERRIDE; virtual void Paint( const SwTxtPaintInfo &rInf ) const SAL_OVERRIDE;
...@@ -126,7 +126,7 @@ private: ...@@ -126,7 +126,7 @@ private:
public: public:
inline SwControlCharPortion( sal_Unicode cChar ) explicit SwControlCharPortion( sal_Unicode cChar )
: mnViewWidth( 0 ), mnHalfCharWidth( 0 ), mcChar( cChar ) : mnViewWidth( 0 ), mnHalfCharWidth( 0 ), mcChar( cChar )
{ {
SetWhichPor( POR_CONTROLCHAR ); SetLen( 1 ); SetWhichPor( POR_CONTROLCHAR ); SetLen( 1 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment