Kaydet (Commit) 53516e9c authored tarafından Noel Grandin's avatar Noel Grandin

sal_Bool->bool

Change-Id: I857b81ea1eea27554980ca7c7a9f771d6aa7db61
üst 9d03b8e9
......@@ -31,7 +31,7 @@ using namespace formula;
// -----------------------------------------------------------------------
static sal_Bool lcl_FillRangeFromName( ScRange& rRange, ScDocShell* pDocSh, const OUString& rName )
static bool lcl_FillRangeFromName( ScRange& rRange, ScDocShell* pDocSh, const OUString& rName )
{
if (pDocSh)
{
......@@ -43,7 +43,7 @@ static sal_Bool lcl_FillRangeFromName( ScRange& rRange, ScDocShell* pDocSh, cons
if (pData)
{
if ( pData->IsValidReference( rRange ) )
return sal_True;
return true;
}
}
}
......@@ -147,7 +147,7 @@ sal_Bool ScServerObject::GetData(
if ( lcl_FillRangeFromName( aNew, pDocSh, aItemStr ) && aNew != aRange )
{
aRange = aNew;
bRefreshListener = sal_True;
bRefreshListener = true;
}
}
......@@ -199,7 +199,7 @@ sal_Bool ScServerObject::GetData(
void ScServerObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
{
sal_Bool bDataChanged = false;
bool bDataChanged = false;
// DocShell can't be tested via type info, because SFX_HINT_DYING comes from the dtor
if ( &rBC == pDocSh )
......@@ -220,7 +220,7 @@ void ScServerObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
// check if named range was modified
ScRange aNew;
if ( lcl_FillRangeFromName( aNew, pDocSh, aItemStr ) && aNew != aRange )
bDataChanged = sal_True;
bDataChanged = true;
}
}
else
......@@ -229,14 +229,14 @@ void ScServerObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
const ScHint* pScHint = PTR_CAST( ScHint, &rHint );
if (pScHint && (pScHint->GetId() & SC_HINT_DATACHANGED))
bDataChanged = sal_True;
bDataChanged = true;
else if (rHint.ISA(ScAreaChangedHint)) // position of broadcaster changed
{
ScRange aNewRange = ((const ScAreaChangedHint&)rHint).GetRange();
if ( aRange != aNewRange )
{
bRefreshListener = sal_True;
bDataChanged = sal_True;
bRefreshListener = true;
bDataChanged = true;
}
}
else if (rHint.ISA(SfxSimpleHint))
......@@ -246,8 +246,8 @@ void ScServerObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
{
// If the range is being deleted, listening must be restarted
// after the deletion is complete (done in GetData)
bRefreshListener = sal_True;
bDataChanged = sal_True;
bRefreshListener = true;
bDataChanged = true;
}
}
}
......
......@@ -46,7 +46,7 @@ private:
ScDocShell* pDocSh;
ScRange aRange;
OUString aItemStr;
sal_Bool bRefreshListener;
bool bRefreshListener;
void Clear();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment