summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-18 12:35:10 +0200
committerNoel Grandin <noel@peralex.com>2014-02-19 13:04:57 +0200
commitcabf650ad000d3f98ca1075a67838d2a0992ed02 (patch)
tree99e81d2d8d9054f75bb9dca7b01c9f33fdaf28e4 /formula
parentae2f7da4f958da474da7a10edbce71e26400a891 (diff)
sal_Bool->bool
Change-Id: I3589b3fb44ad57140567338809513b3df7c7eba5
Diffstat (limited to 'formula')
-rw-r--r--formula/source/ui/dlg/FormulaHelper.cxx8
-rw-r--r--formula/source/ui/dlg/formula.cxx14
2 files changed, 11 insertions, 11 deletions
diff --git a/formula/source/ui/dlg/FormulaHelper.cxx b/formula/source/ui/dlg/FormulaHelper.cxx
index b7e4ce279839..19b0abf96226 100644
--- a/formula/source/ui/dlg/FormulaHelper.cxx
+++ b/formula/source/ui/dlg/FormulaHelper.cxx
@@ -66,8 +66,8 @@ FormulaHelper::FormulaHelper(const IFunctionManager* _pFunctionManager)
m_pCharClass = m_pSysLocale->GetCharClassPtr();
}
-sal_Bool FormulaHelper::GetNextFunc( const OUString& rFormula,
- sal_Bool bBack,
+bool FormulaHelper::GetNextFunc( const OUString& rFormula,
+ bool bBack,
sal_Int32& rFStart, // Input and output
sal_Int32* pFEnd, // = NULL
const IFunctionDescription** ppFDesc, // = NULL
@@ -77,7 +77,7 @@ sal_Bool FormulaHelper::GetNextFunc( const OUString& rFormula,
OUString aFname;
rFStart = GetFunctionStart( rFormula, rFStart, bBack, ppFDesc ? &aFname : NULL );
- sal_Bool bFound = ( rFStart != FUNC_NOTFOUND );
+ bool bFound = ( rFStart != FUNC_NOTFOUND );
if ( bFound )
{
@@ -190,7 +190,7 @@ inline sal_Bool IsFormulaText( const CharClass* _pCharClass,const OUString& rStr
sal_Int32 FormulaHelper::GetFunctionStart( const OUString& rFormula,
sal_Int32 nStart,
- sal_Bool bBack,
+ bool bBack,
OUString* pFuncName ) const
{
sal_Int32 nStrLen = rFormula.getLength();
diff --git a/formula/source/ui/dlg/formula.cxx b/formula/source/ui/dlg/formula.cxx
index b9f44dec5f6f..a81d20a47dbd 100644
--- a/formula/source/ui/dlg/formula.cxx
+++ b/formula/source/ui/dlg/formula.cxx
@@ -830,7 +830,7 @@ void FormulaDlg_Impl::FillControls(sal_Bool &rbNext, sal_Bool &rbPrev)
const IFunctionDescription* pOldFuncDesc = pFuncDesc;
sal_Bool bTestFlag = sal_False;
- if ( m_aFormulaHelper.GetNextFunc( aFormula, sal_False,
+ if ( m_aFormulaHelper.GetNextFunc( aFormula, false,
nNextFStart, &nNextFEnd, &pFuncDesc, &m_aArguments ) )
{
bTestFlag = (pOldFuncDesc != pFuncDesc);
@@ -905,10 +905,10 @@ void FormulaDlg_Impl::FillControls(sal_Bool &rbNext, sal_Bool &rbPrev)
// Test, ob vorne/hinten noch mehr Funktionen sind
sal_Int32 nTempStart = m_aFormulaHelper.GetArgStart( aFormula, nFStart, 0 );
- rbNext = m_aFormulaHelper.GetNextFunc( aFormula, sal_False, nTempStart );
+ rbNext = m_aFormulaHelper.GetNextFunc( aFormula, false, nTempStart );
nTempStart = pMEdit->GetSelection().Min();
pData->SetFStart(nTempStart);
- rbPrev = m_aFormulaHelper.GetNextFunc( aFormula, sal_True, nTempStart );
+ rbPrev = m_aFormulaHelper.GetNextFunc( aFormula, true, nTempStart );
}
// -----------------------------------------------------------------------------
@@ -1108,7 +1108,7 @@ void FormulaDlg_Impl::EditThisFunc(sal_Int32 nFStart)
sal_Bool bFound;
- bFound = m_aFormulaHelper.GetNextFunc( aFormula, sal_False, nNextFStart, &nNextFEnd);
+ bFound = m_aFormulaHelper.GetNextFunc( aFormula, false, nNextFStart, &nNextFEnd);
if ( bFound )
{
sal_Int32 PrivStart, PrivEnd;
@@ -1145,12 +1145,12 @@ void FormulaDlg_Impl::EditNextFunc( sal_Bool bForward, sal_Int32 nFStart )
if ( bForward )
{
nNextFStart = m_aFormulaHelper.GetArgStart( aFormula, nFStart, 0 );
- bFound = m_aFormulaHelper.GetNextFunc( aFormula, sal_False, nNextFStart, &nNextFEnd);
+ bFound = m_aFormulaHelper.GetNextFunc( aFormula, false, nNextFStart, &nNextFEnd);
}
else
{
nNextFStart = nFStart;
- bFound = m_aFormulaHelper.GetNextFunc( aFormula, sal_True, nNextFStart, &nNextFEnd);
+ bFound = m_aFormulaHelper.GetNextFunc( aFormula, true, nNextFStart, &nNextFEnd);
}
if ( bFound )
@@ -1349,7 +1349,7 @@ IMPL_LINK_NOARG(FormulaDlg_Impl, FormulaCursorHdl)
}
if(nCount==0)
{
- nFStart=m_aFormulaHelper.GetFunctionStart(aString,n,sal_True);
+ nFStart=m_aFormulaHelper.GetFunctionStart(aString, n, true);
EditThisFunc(nFStart);
}
else