Kaydet (Commit) 0842a270 authored tarafından Thomas Arnhold's avatar Thomas Arnhold

use bool directly

Change-Id: I314e290b453c55e345559d8abef9b00622493ed3
üst e7641433
......@@ -133,7 +133,7 @@ void OFileWriter::writeIntParameter(const sal_Char* pAsciiStr, const sal_Int16 c
bool OFileWriter::writeDefaultParameter(const sal_Char* pAsciiStr, const OUString& str, sal_Int16 count) const
{
bool bBool = (str == "true" ? 1 : 0);
bool bBool = str == "true";
fprintf(m_f,"static const sal_Unicode default%s%d[] = {%d};\n", pAsciiStr, count, bBool);
return bBool;
}
......
......@@ -372,10 +372,10 @@ namespace connectivity
}
bool isBound() const { return m_bBound; }
void setBound(bool _bBound) { m_bBound = _bBound ? 1 : 0; }
void setBound(bool _bBound) { m_bBound = _bBound; }
bool isModified() const { return m_bModified; }
void setModified(bool _bMod=true) { m_bModified = _bMod ? 1 : 0; }
void setModified(bool _bMod=true) { m_bModified = _bMod; }
bool isSigned() const { return m_bSigned; }
void setSigned(bool _bSig=true);
......
......@@ -549,21 +549,21 @@ public:
bool IsInBalancedSection() const;
inline bool IsReverse() const { return mbReverse; }
inline void SetReverse( bool bNew ){ mbReverse = bNew ? 1 : 0; }
inline void SetReverse( bool bNew ){ mbReverse; }
inline bool IsVertical() const;
inline bool IsVertLR() const;
inline bool GetVerticalFlag() const { return mbVertical; }
inline void SetVertical( bool bNew ){ mbVertical = bNew ? 1 : 0; }
inline void SetVertical( bool bNew ){ mbVertical; }
inline void SetbVertLR( bool bNew ) { mbVertLR = bNew ? 1 : 0; }
inline void SetDerivedVert( bool bNew ){ mbDerivedVert = bNew ? 1 : 0; }
inline void SetInvalidVert( bool bNew) { mbInvalidVert = bNew ? 1 : 0; }
inline void SetbVertLR( bool bNew ) { mbVertLR = bNew; }
inline void SetDerivedVert( bool bNew ){ mbDerivedVert = bNew; }
inline void SetInvalidVert( bool bNew) { mbInvalidVert = bNew; }
inline bool IsRightToLeft() const;
inline bool GetRightToLeftFlag() const { return mbRightToLeft; }
inline void SetRightToLeft( bool bNew ){ mbRightToLeft = bNew ? 1 : 0; }
inline void SetDerivedR2L( bool bNew ) { mbDerivedR2L = bNew ? 1 : 0; }
inline void SetInvalidR2L( bool bNew ) { mbInvalidR2L = bNew ? 1 : 0; }
inline void SetRightToLeft( bool bNew ){ mbRightToLeft = bNew; }
inline void SetDerivedR2L( bool bNew ) { mbDerivedR2L = bNew; }
inline void SetInvalidR2L( bool bNew ) { mbInvalidR2L = bNew; }
void CheckDirChange();
// returns upper left frame position for LTR and
......
......@@ -1310,10 +1310,10 @@ void SwFrm::SetDirFlags( bool bVert )
if( pAsk )
{
mbVertical = pAsk->IsVertical() ? 1 : 0;
mbReverse = pAsk->IsReverse() ? 1 : 0;
mbVertical = pAsk->IsVertical();
mbReverse = pAsk->IsReverse();
mbVertLR = pAsk->IsVertLR() ? 1 : 0;
mbVertLR = pAsk->IsVertLR();
if ( !pAsk->mbInvalidVert )
mbInvalidVert = false;
......@@ -1335,7 +1335,7 @@ void SwFrm::SetDirFlags( bool bVert )
OSL_ENSURE( pAsk != this, "Oops! Stack overflow is about to happen" );
if( pAsk )
mbRightToLeft = pAsk->IsRightToLeft() ? 1 : 0;
mbRightToLeft = pAsk->IsRightToLeft();
if( !pAsk || pAsk->mbInvalidR2L )
bInv = mbInvalidR2L;
}
......
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