diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-05 16:23:36 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-11 08:18:20 +0200 |
commit | aaee84c4c865ee121de6d9110c27d51c90dc936b (patch) | |
tree | d742fce3620d867f949784a425e1c003d2d4d240 /svx/source/dialog/relfld.cxx | |
parent | 37a2ed040e0e11ecef115d8955e09845aeff7511 (diff) |
svx: sal_Bool->bool
Change-Id: I26a7bded5138d646c67ae396690659ee13ba9f36
Diffstat (limited to 'svx/source/dialog/relfld.cxx')
-rw-r--r-- | svx/source/dialog/relfld.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/svx/source/dialog/relfld.cxx b/svx/source/dialog/relfld.cxx index 0ada39affbb4..1031c894d78f 100644 --- a/svx/source/dialog/relfld.cxx +++ b/svx/source/dialog/relfld.cxx @@ -27,9 +27,9 @@ SvxRelativeField::SvxRelativeField( Window* pParent, WinBits nBits) , nRelMin(0) , nRelMax(0) , nRelStep(0) - , bRelativeMode(sal_False) - , bRelative(sal_False) - , bNegativeEnabled(sal_False) + , bRelativeMode(false) + , bRelative(false) + , bNegativeEnabled(false) { @@ -51,7 +51,7 @@ void SvxRelativeField::Modify() if ( bRelativeMode ) { OUString aStr = GetText(); - sal_Bool bNewMode = bRelative; + bool bNewMode = bRelative; if ( bRelative ) { @@ -62,7 +62,7 @@ void SvxRelativeField::Modify() if( ( ( *pStr < '0' ) || ( *pStr > '9' ) ) && ( *pStr != '%' ) ) { - bNewMode = sal_False; + bNewMode = false; break; } pStr++; @@ -71,7 +71,7 @@ void SvxRelativeField::Modify() else { if ( aStr.indexOf( "%" ) != -1 ) - bNewMode = sal_True; + bNewMode = true; } if ( bNewMode != bRelative ) @@ -86,7 +86,7 @@ void SvxRelativeField::Modify() void SvxRelativeField::EnableRelativeMode( sal_uInt16 nMin, sal_uInt16 nMax, sal_uInt16 nStep ) { - bRelativeMode = sal_True; + bRelativeMode = true; nRelMin = nMin; nRelMax = nMax; nRelStep = nStep; @@ -95,14 +95,14 @@ void SvxRelativeField::EnableRelativeMode( sal_uInt16 nMin, -void SvxRelativeField::SetRelative( sal_Bool bNewRelative ) +void SvxRelativeField::SetRelative( bool bNewRelative ) { Selection aSelection = GetSelection(); OUString aStr = GetText(); if ( bNewRelative ) { - bRelative = sal_True; + bRelative = true; SetDecimalDigits( 0 ); SetMin( nRelMin ); SetMax( nRelMax ); @@ -110,7 +110,7 @@ void SvxRelativeField::SetRelative( sal_Bool bNewRelative ) } else { - bRelative = sal_False; + bRelative = false; SetDecimalDigits( 2 ); SetMin( bNegativeEnabled ? -9999 : 0 ); SetMax( 9999 ); |