summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@erack.de>2011-08-10 01:32:41 +0200
committerEike Rathke <erack@erack.de>2011-08-10 01:32:41 +0200
commitea4470cbaca80a3d3f5816434918dc99cd989d8d (patch)
tree3b10b0ab9d73d6fc920a523e1ab9116c685191e0 /sc
parent5eb0b845a1fa9f120199bad64b7f705e8c3d105c (diff)
Number formatter sal_Bool -> bool clean-up and cosmetics
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/column3.cxx2
-rw-r--r--sc/source/core/tool/interpr1.cxx4
-rw-r--r--sc/source/core/tool/zforauto.cxx2
-rw-r--r--sc/source/ui/docshell/docsh8.cxx2
-rw-r--r--sc/source/ui/view/viewfunc.cxx2
5 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index 9c7d2fa3f982..8c3b37310695 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -2026,7 +2026,7 @@ xub_StrLen ScColumn::GetMaxNumberStringLen(
sal_uInt16 nPrec;
if (pEntry)
{
- sal_Bool bThousand, bNegRed;
+ bool bThousand, bNegRed;
sal_uInt16 nLeading;
pEntry->GetFormatSpecialInfo(bThousand, bNegRed, nPrec, nLeading);
}
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index 0b2226787f27..df9f3c8503de 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -2038,9 +2038,9 @@ void ScInterpreter::ScCell()
else if( aInfoType.EqualsAscii( "FORMAT" ) )
{ // specific format code for standard formats
sal_uLong nFormat = pDok->GetNumberFormat( aCellPos );
- sal_Bool bAppendPrec = sal_True;
+ bool bAppendPrec = true;
sal_uInt16 nPrec, nLeading;
- sal_Bool bThousand, bIsRed;
+ bool bThousand, bIsRed;
pFormatter->GetFormatSpecialInfo( nFormat, bThousand, bIsRed, nPrec, nLeading );
switch( pFormatter->GetType( nFormat ) )
diff --git a/sc/source/core/tool/zforauto.cxx b/sc/source/core/tool/zforauto.cxx
index 6d8266beb4fd..b438fb7aae07 100644
--- a/sc/source/core/tool/zforauto.cxx
+++ b/sc/source/core/tool/zforauto.cxx
@@ -99,7 +99,7 @@ void ScNumFormatAbbrev::PutFormatIndex(sal_uLong nFormat,
sal_uLong ScNumFormatAbbrev::GetFormatIndex( SvNumberFormatter& rFormatter)
{
short nType;
- sal_Bool bNewInserted;
+ bool bNewInserted;
xub_StrLen nCheckPos;
return rFormatter.GetIndexPuttingAndConverting( sFormatstring, eLnge,
eSysLnge, nType, bNewInserted, nCheckPos);
diff --git a/sc/source/ui/docshell/docsh8.cxx b/sc/source/ui/docshell/docsh8.cxx
index 1cf3a34d54a0..c33b76a923c6 100644
--- a/sc/source/ui/docshell/docsh8.cxx
+++ b/sc/source/ui/docshell/docsh8.cxx
@@ -273,7 +273,7 @@ static void lcl_setScalesToColumns(ScDocument& rDoc, const vector<long>& rScales
continue;
LanguageType eLang = pOldEntry->GetLanguage();
- sal_Bool bThousand, bNegRed;
+ bool bThousand, bNegRed;
sal_uInt16 nPrecision, nLeading;
pOldEntry->GetFormatSpecialInfo(bThousand, bNegRed, nPrecision, nLeading);
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx
index 8e49287fb3be..2b934eed59c4 100644
--- a/sc/source/ui/view/viewfunc.cxx
+++ b/sc/source/ui/view/viewfunc.cxx
@@ -2778,7 +2778,7 @@ void ScViewFunc::ChangeNumFmtDecimals( sal_Bool bIncrement )
sal_Bool bError = false;
LanguageType eLanguage = pOldEntry->GetLanguage();
- sal_Bool bThousand, bNegRed;
+ bool bThousand, bNegRed;
sal_uInt16 nPrecision, nLeading;
pOldEntry->GetFormatSpecialInfo( bThousand, bNegRed, nPrecision, nLeading );