summaryrefslogtreecommitdiffstats
path: root/sw/source/ui/shells
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-11 11:43:35 +0200
committerNoel Grandin <noel@peralex.com>2014-02-11 12:50:43 +0200
commit08c40a2474405b160aab96cabe115d8437d68f8a (patch)
treed423154f9ad8e44302f8ed7ae62b5d7d3013a71f /sw/source/ui/shells
parentfdo#72468 avoid out of bounds array access (diff)
downloadcore-08c40a2474405b160aab96cabe115d8437d68f8a.tar.gz
core-08c40a2474405b160aab96cabe115d8437d68f8a.zip
sal_Bool->bool
Change-Id: I31fb9d5b49260fd1a8fc1312b01fd5632c97ab2e
Diffstat (limited to 'sw/source/ui/shells')
-rw-r--r--sw/source/ui/shells/beziersh.cxx4
-rw-r--r--sw/source/ui/shells/drawdlg.cxx8
-rw-r--r--sw/source/ui/shells/drawsh.cxx8
-rw-r--r--sw/source/ui/shells/drwbassh.cxx4
-rw-r--r--sw/source/ui/shells/mediash.cxx4
-rw-r--r--sw/source/ui/shells/navsh.cxx4
6 files changed, 16 insertions, 16 deletions
diff --git a/sw/source/ui/shells/beziersh.cxx b/sw/source/ui/shells/beziersh.cxx
index 7b3751d86cac..486a159b9ff7 100644
--- a/sw/source/ui/shells/beziersh.cxx
+++ b/sw/source/ui/shells/beziersh.cxx
@@ -71,7 +71,7 @@ void SwBezierShell::Execute(SfxRequest &rReq)
const SfxItemSet *pArgs = rReq.GetArgs();
sal_uInt16 nSlotId = rReq.GetSlot();
sal_Bool bChanged = pSdrView->GetModel()->IsChanged();
- pSdrView->GetModel()->SetChanged(sal_False);
+ pSdrView->GetModel()->SetChanged(false);
const SfxPoolItem* pItem;
if(pArgs)
pArgs->GetItemState(nSlotId, sal_False, &pItem);
@@ -216,7 +216,7 @@ void SwBezierShell::Execute(SfxRequest &rReq)
if (pSdrView->GetModel()->IsChanged())
GetShell().SetModified();
else if (bChanged)
- pSdrView->GetModel()->SetChanged(sal_True);
+ pSdrView->GetModel()->SetChanged(true);
}
void SwBezierShell::GetState(SfxItemSet &rSet)
diff --git a/sw/source/ui/shells/drawdlg.cxx b/sw/source/ui/shells/drawdlg.cxx
index 8373278cbc06..9553699b83e1 100644
--- a/sw/source/ui/shells/drawdlg.cxx
+++ b/sw/source/ui/shells/drawdlg.cxx
@@ -40,7 +40,7 @@ void SwDrawShell::ExecDrawDlg(SfxRequest& rReq)
SdrView* pView = pSh->GetDrawView();
SdrModel* pDoc = pView->GetModel();
sal_Bool bChanged = pDoc->IsChanged();
- pDoc->SetChanged(sal_False);
+ pDoc->SetChanged(false);
SfxItemSet aNewAttr( pDoc->GetItemPool() );
pView->GetAttributes( aNewAttr );
@@ -165,7 +165,7 @@ void SwDrawShell::ExecDrawDlg(SfxRequest& rReq)
GetShell().SetModified();
else
if (bChanged)
- pDoc->SetChanged(sal_True);
+ pDoc->SetChanged(true);
}
void SwDrawShell::ExecDrawAttrArgs(SfxRequest& rReq)
@@ -174,7 +174,7 @@ void SwDrawShell::ExecDrawAttrArgs(SfxRequest& rReq)
SdrView* pView = pSh->GetDrawView();
const SfxItemSet* pArgs = rReq.GetArgs();
sal_Bool bChanged = pView->GetModel()->IsChanged();
- pView->GetModel()->SetChanged(sal_False);
+ pView->GetModel()->SetChanged(false);
GetView().NoRotate();
@@ -214,7 +214,7 @@ void SwDrawShell::ExecDrawAttrArgs(SfxRequest& rReq)
GetShell().SetModified();
else
if (bChanged)
- pView->GetModel()->SetChanged(sal_True);
+ pView->GetModel()->SetChanged(true);
}
void SwDrawShell::GetDrawAttrState(SfxItemSet& rSet)
diff --git a/sw/source/ui/shells/drawsh.cxx b/sw/source/ui/shells/drawsh.cxx
index 84f394af081b..df9bb3f104e2 100644
--- a/sw/source/ui/shells/drawsh.cxx
+++ b/sw/source/ui/shells/drawsh.cxx
@@ -198,7 +198,7 @@ void SwDrawShell::Execute(SfxRequest &rReq)
sal_uInt16 nSlotId = rReq.GetSlot();
sal_Bool bChanged = pSdrView->GetModel()->IsChanged();
- pSdrView->GetModel()->SetChanged(sal_False);
+ pSdrView->GetModel()->SetChanged(false);
const SfxPoolItem* pItem;
if(pArgs)
@@ -401,7 +401,7 @@ void SwDrawShell::Execute(SfxRequest &rReq)
if (pSdrView->GetModel()->IsChanged())
rSh.SetModified();
else if (bChanged)
- pSdrView->GetModel()->SetChanged(sal_True);
+ pSdrView->GetModel()->SetChanged(true);
}
void SwDrawShell::GetState(SfxItemSet& rSet)
@@ -522,7 +522,7 @@ void SwDrawShell::ExecFormText(SfxRequest& rReq)
SwWrtShell &rSh = GetShell();
SdrView* pDrView = rSh.GetDrawView();
sal_Bool bChanged = pDrView->GetModel()->IsChanged();
- pDrView->GetModel()->SetChanged(sal_False);
+ pDrView->GetModel()->SetChanged(false);
const SdrMarkList& rMarkList = pDrView->GetMarkedObjectList();
@@ -542,7 +542,7 @@ void SwDrawShell::ExecFormText(SfxRequest& rReq)
rSh.SetModified();
else
if (bChanged)
- pDrView->GetModel()->SetChanged(sal_True);
+ pDrView->GetModel()->SetChanged(true);
}
//Return status values for FontWork
diff --git a/sw/source/ui/shells/drwbassh.cxx b/sw/source/ui/shells/drwbassh.cxx
index e92e5f0664f2..bff73cf95a51 100644
--- a/sw/source/ui/shells/drwbassh.cxx
+++ b/sw/source/ui/shells/drwbassh.cxx
@@ -102,7 +102,7 @@ void SwDrawBaseShell::Execute(SfxRequest &rReq)
const SfxItemSet *pArgs = rReq.GetArgs();
sal_uInt16 nSlotId = rReq.GetSlot();
sal_Bool bChanged = pSdrView->GetModel()->IsChanged();
- pSdrView->GetModel()->SetChanged(sal_False);
+ pSdrView->GetModel()->SetChanged(false);
const SfxPoolItem* pItem = 0;
if(pArgs)
pArgs->GetItemState(nSlotId, sal_False, &pItem);
@@ -599,7 +599,7 @@ void SwDrawBaseShell::Execute(SfxRequest &rReq)
if (pSdrView->GetModel()->IsChanged())
pSh->SetModified();
else if (bChanged)
- pSdrView->GetModel()->SetChanged(sal_True);
+ pSdrView->GetModel()->SetChanged(true);
// 40220: After Delete from DrawObjecs over the API GPF through self-destruction
if(bNotify)
GetView().AttrChangedNotify(pSh); // Shell switch if applicable...
diff --git a/sw/source/ui/shells/mediash.cxx b/sw/source/ui/shells/mediash.cxx
index 3bb0c31e0d30..9666079beadf 100644
--- a/sw/source/ui/shells/mediash.cxx
+++ b/sw/source/ui/shells/mediash.cxx
@@ -85,7 +85,7 @@ void SwMediaShell::ExecMedia(SfxRequest &rReq)
sal_uInt16 nSlotId = rReq.GetSlot();
sal_Bool bChanged = pSdrView->GetModel()->IsChanged();
- pSdrView->GetModel()->SetChanged( sal_False );
+ pSdrView->GetModel()->SetChanged( false );
switch( nSlotId )
{
@@ -141,7 +141,7 @@ void SwMediaShell::ExecMedia(SfxRequest &rReq)
if( pSdrView->GetModel()->IsChanged() )
GetShell().SetModified();
else if( bChanged )
- pSdrView->GetModel()->SetChanged(sal_True);
+ pSdrView->GetModel()->SetChanged(true);
}
}
diff --git a/sw/source/ui/shells/navsh.cxx b/sw/source/ui/shells/navsh.cxx
index 5d9ea9a30352..f821f4cbfac3 100644
--- a/sw/source/ui/shells/navsh.cxx
+++ b/sw/source/ui/shells/navsh.cxx
@@ -49,7 +49,7 @@ void SwNavigationShell::Execute(SfxRequest &rReq)
const SfxItemSet *pArgs = rReq.GetArgs();
sal_uInt16 nSlotId = rReq.GetSlot();
sal_Bool bChanged = pSdrView->GetModel()->IsChanged();
- pSdrView->GetModel()->SetChanged(sal_False);
+ pSdrView->GetModel()->SetChanged(false);
SwNavigationMgr& aSwNavigationMgr = pSh->GetNavigationMgr();
const SfxPoolItem* pItem;
if(pArgs)
@@ -69,7 +69,7 @@ void SwNavigationShell::Execute(SfxRequest &rReq)
if (pSdrView->GetModel()->IsChanged())
GetShell().SetModified();
else if (bChanged)
- pSdrView->GetModel()->SetChanged(sal_True);
+ pSdrView->GetModel()->SetChanged(true);
}
// determine if the buttons should be enabled/disabled