WaE: unsafe mix of bool and sal_Bool

Change-Id: I3854a9958f49dbbabe7a604e4604d5d8f79adc11
This commit is contained in:
Caolán McNamara 2012-05-14 12:05:03 +01:00
parent 2368d3403a
commit bd04c1d896
2 changed files with 10 additions and 10 deletions

View file

@ -376,7 +376,7 @@ private:
sal_Bool mbInSelect;
sal_Bool mbSelColor;
sal_Bool mbSelTextColor;
sal_Bool mbMirrored;
bool mbMirrored;
bool mbHasInsertTab; // if true, the tab bar has an extra tab at the end.
Link maSelectHdl;
Link maDoubleClickHdl;
@ -496,16 +496,16 @@ public:
@param bMirrored sal_True = the control will draw itself RTL in LTR GUI,
and vice versa; sal_False = the control behaves according to the
current direction of the GUI. */
void SetMirrored( sal_Bool bMirrored = sal_True );
void SetMirrored(bool bMirrored = true);
/** Returns sal_True, if the control is set to mirrored mode (see SetMirrored()). */
sal_Bool IsMirrored() const { return mbMirrored; }
bool IsMirrored() const { return mbMirrored; }
/** Sets the control to LTR or RTL mode regardless of the GUI direction.
@param bRTL sal_False = the control will draw from left to right;
sal_True = the control will draw from right to left. */
void SetEffectiveRTL( sal_Bool bRTL );
/** Returns sal_True, if the control draws from right to left (see SetEffectiveRTL()). */
sal_Bool IsEffectiveRTL() const;
void SetEffectiveRTL( bool bRTL );
/** Returns true, if the control draws from right to left (see SetEffectiveRTL()). */
bool IsEffectiveRTL() const;
sal_Bool StartDrag( const CommandEvent& rCEvt, Region& rRegion );
sal_uInt16 ShowDropPos( const Point& rPos );

View file

@ -2413,24 +2413,24 @@ void TabBar::EndEditMode( sal_Bool bCancel )
// -----------------------------------------------------------------------
void TabBar::SetMirrored( sal_Bool bMirrored )
void TabBar::SetMirrored(bool bMirrored)
{
if( mbMirrored != bMirrored )
{
mbMirrored = bMirrored;
mbSizeFormat = sal_True;
mbSizeFormat = true;
ImplInitControls(); // for button images
Resize(); // recalculates control positions
Mirror();
}
}
void TabBar::SetEffectiveRTL( sal_Bool bRTL )
void TabBar::SetEffectiveRTL( bool bRTL )
{
SetMirrored( bRTL != Application::GetSettings().GetLayoutRTL() );
}
sal_Bool TabBar::IsEffectiveRTL() const
bool TabBar::IsEffectiveRTL() const
{
return IsMirrored() != Application::GetSettings().GetLayoutRTL();
}