[Libreoffice-commits] core.git: svx/source
Stephan Bergmann
sbergman at redhat.com
Tue Jul 1 05:13:21 PDT 2014
svx/source/dialog/hdft.cxx | 10 +++++-----
svx/source/dialog/pagectrl.cxx | 8 ++++----
2 files changed, 9 insertions(+), 9 deletions(-)
New commits:
commit ff2fd4d131e4681b43993f3bdbbde57fcf79ff8d
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Jul 1 14:12:50 2014 +0200
loplugin:literaltoboolconversion
Change-Id: I864d5e3fbb7f8f8278c45b721be70f805c6a6713
diff --git a/svx/source/dialog/hdft.cxx b/svx/source/dialog/hdft.cxx
index 749f68b..a5d902a 100644
--- a/svx/source/dialog/hdft.cxx
+++ b/svx/source/dialog/hdft.cxx
@@ -590,7 +590,7 @@ IMPL_LINK_NOARG(SvxHFPage, BackgroundHdl)
{
// Use only the necessary items for border and background
const sal_uInt16 nOuter(GetWhich(SID_ATTR_BORDER_OUTER));
- const sal_uInt16 nInner(GetWhich(SID_ATTR_BORDER_INNER, sal_False));
+ const sal_uInt16 nInner(GetWhich(SID_ATTR_BORDER_INNER, false));
const sal_uInt16 nShadow(GetWhich(SID_ATTR_BORDER_SHADOW));
if(mbEnableDrawingLayerFillStyles)
@@ -643,7 +643,7 @@ IMPL_LINK_NOARG(SvxHFPage, BackgroundHdl)
const SfxPoolItem* pItem;
- if(SFX_ITEM_SET == GetItemSet().GetItemState(GetWhich(nId), sal_False, &pItem))
+ if(SFX_ITEM_SET == GetItemSet().GetItemState(GetWhich(nId), false, &pItem))
{
// If a SfxItemSet from the SetItem for SID_ATTR_PAGE_HEADERSET or
// SID_ATTR_PAGE_FOOTERSET exists, use it's content
@@ -661,7 +661,7 @@ IMPL_LINK_NOARG(SvxHFPage, BackgroundHdl)
}
}
- if(SFX_ITEM_SET == GetItemSet().GetItemState(nInner, sal_False, &pItem))
+ if(SFX_ITEM_SET == GetItemSet().GetItemState(nInner, false, &pItem))
{
// The set InfoItem is always required
pBBSet->Put(*pItem);
@@ -781,7 +781,7 @@ void SvxHFPage::ResetBackground_Impl( const SfxItemSet& rSet )
if (SFX_ITEM_SET == rSet.GetItemState(nWhich, false))
{
- const SvxSetItem& rSetItem = static_cast< const SvxSetItem& >(rSet.Get(nWhich, sal_False));
+ const SvxSetItem& rSetItem = static_cast< const SvxSetItem& >(rSet.Get(nWhich, false));
const SfxItemSet& rTmpSet = rSetItem.GetItemSet();
const SfxBoolItem& rOn = static_cast< const SfxBoolItem& >(rTmpSet.Get(GetWhich(SID_ATTR_PAGE_ON)));
@@ -825,7 +825,7 @@ void SvxHFPage::ResetBackground_Impl( const SfxItemSet& rSet )
if (SFX_ITEM_SET == rSet.GetItemState(nWhich, false))
{
- const SvxSetItem& rSetItem = static_cast< const SvxSetItem& >(rSet.Get(nWhich, sal_False));
+ const SvxSetItem& rSetItem = static_cast< const SvxSetItem& >(rSet.Get(nWhich, false));
const SfxItemSet& rTmpSet = rSetItem.GetItemSet();
const SfxBoolItem& rOn = static_cast< const SfxBoolItem& >(rTmpSet.Get(GetWhich(SID_ATTR_PAGE_ON)));
diff --git a/svx/source/dialog/pagectrl.cxx b/svx/source/dialog/pagectrl.cxx
index 02bf693..b376f5a 100644
--- a/svx/source/dialog/pagectrl.cxx
+++ b/svx/source/dialog/pagectrl.cxx
@@ -143,17 +143,17 @@ void SvxPageWindow::Paint(const Rectangle&)
aSz = PixelToLogic(GetSizePixel());
nYPos = (aSz.Height() - aSize.Height()) / 2;
long nXPos = (aSz.Width() - aSize.Width()) / 2;
- DrawPage(Point(nXPos,nYPos),sal_True,sal_True);
+ DrawPage(Point(nXPos,nYPos),true,true);
}
else
// Portrait
- DrawPage(Point((aSz.Width() - aSize.Width()) / 2,nYPos),sal_True,sal_True);
+ DrawPage(Point((aSz.Width() - aSize.Width()) / 2,nYPos),true,true);
}
else
{
// Left and right page are different -> draw two pages if possible
- DrawPage(Point(0,nYPos),sal_False,(sal_Bool)(eUsage & SVX_PAGE_LEFT));
- DrawPage(Point(aSize.Width() + aSize.Width() / 8,nYPos),sal_True,
+ DrawPage(Point(0,nYPos),false,(sal_Bool)(eUsage & SVX_PAGE_LEFT));
+ DrawPage(Point(aSize.Width() + aSize.Width() / 8,nYPos),true,
(sal_Bool)(eUsage & SVX_PAGE_RIGHT));
}
}
More information about the Libreoffice-commits
mailing list