diff options
author | Eike Rathke <erack@redhat.com> | 2013-09-16 15:06:48 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-09-16 15:08:18 +0200 |
commit | 0825d0cb76a84503d77d7e635947e1f4da7e299d (patch) | |
tree | f034eb235914b6d600c07d9b9f98744515f66674 /xmloff/source/style/weighhdl.cxx | |
parent | d6e9bb17675200e12777ed23d0c685fbd2bb4c59 (diff) |
sal_Bool to bool
Change-Id: Id32780e5cb565e85f0366a91282ce085ed7d2f3c
Diffstat (limited to 'xmloff/source/style/weighhdl.cxx')
-rw-r--r-- | xmloff/source/style/weighhdl.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/xmloff/source/style/weighhdl.cxx b/xmloff/source/style/weighhdl.cxx index 5fd5db811a95..d0a89a96ca56 100644 --- a/xmloff/source/style/weighhdl.cxx +++ b/xmloff/source/style/weighhdl.cxx @@ -64,20 +64,20 @@ XMLFontWeightPropHdl::~XMLFontWeightPropHdl() // Nothing to do } -sal_Bool XMLFontWeightPropHdl::importXML( const OUString& rStrImpValue, Any& rValue, const SvXMLUnitConverter& ) const +bool XMLFontWeightPropHdl::importXML( const OUString& rStrImpValue, Any& rValue, const SvXMLUnitConverter& ) const { - sal_Bool bRet = sal_False; + bool bRet = false; sal_uInt16 nWeight = 0; if( IsXMLToken( rStrImpValue, XML_WEIGHT_NORMAL ) ) { nWeight = 400; - bRet = sal_True; + bRet = true; } else if( IsXMLToken( rStrImpValue, XML_WEIGHT_BOLD ) ) { nWeight = 700; - bRet = sal_True; + bRet = true; } else { @@ -89,7 +89,7 @@ sal_Bool XMLFontWeightPropHdl::importXML( const OUString& rStrImpValue, Any& rVa if( bRet ) { - bRet = sal_False; + bRet = false; static int nCount = sizeof(aFontWeightMap)/sizeof(FontWeightMapper); for (int i = 0; i < (nCount-1); ++i) { @@ -103,7 +103,7 @@ sal_Bool XMLFontWeightPropHdl::importXML( const OUString& rStrImpValue, Any& rVa else rValue <<= aFontWeightMap[i+1].fWeight; - bRet = sal_True; + bRet = true; break; } } @@ -112,9 +112,9 @@ sal_Bool XMLFontWeightPropHdl::importXML( const OUString& rStrImpValue, Any& rVa return bRet; } -sal_Bool XMLFontWeightPropHdl::exportXML( OUString& rStrExpValue, const Any& rValue, const SvXMLUnitConverter& ) const +bool XMLFontWeightPropHdl::exportXML( OUString& rStrExpValue, const Any& rValue, const SvXMLUnitConverter& ) const { - sal_Bool bRet = sal_False; + bool bRet = false; float fValue = float(); if( !( rValue >>= fValue ) ) @@ -123,11 +123,11 @@ sal_Bool XMLFontWeightPropHdl::exportXML( OUString& rStrExpValue, const Any& rVa if( rValue >>= nValue ) { fValue = (float)nValue; - bRet = sal_True; + bRet = true; } } else - bRet = sal_True; + bRet = true; if( bRet ) { |