[Libreoffice-commits] .: sd/source
Caolán McNamara
caolan at kemper.freedesktop.org
Fri Dec 17 13:33:58 PST 2010
sd/source/core/drawdoc4.cxx | 6 +++---
sd/source/filter/ppt/pptin.cxx | 4 ++--
sd/source/ui/unoidl/unomodel.cxx | 4 ++--
3 files changed, 7 insertions(+), 7 deletions(-)
New commits:
commit b2ac2cabc88550b2211c2fa100f6c2d6979f3743
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Dec 17 20:43:04 2010 +0000
WaE: C4805: Unsafe mix of bool and BOOL
diff --git a/sd/source/core/drawdoc4.cxx b/sd/source/core/drawdoc4.cxx
index 447c6c4..147e5fa 100644
--- a/sd/source/core/drawdoc4.cxx
+++ b/sd/source/core/drawdoc4.cxx
@@ -963,18 +963,18 @@ void SdDrawDocument::SpellObject(SdrTextObj* pObj)
{
sd::ModifyGuard aGuard( this );
SdrModel* pModel = pObj->GetModel();
- sal_Bool bLock = sal_False;
+ bool bLock = sal_False;
if ( pModel )
{
bLock = pModel->isLocked();
- pModel->setLock( sal_True );
+ pModel->setLock(true);
}
// taking text from the outliner
((SdrTextObj*) pObj)->SetOutlinerParaObject( pOutl->CreateParaObject() );
pObj->BroadcastObjectChange();
if ( pModel )
- pModel->setLock( bLock );
+ pModel->setLock(bLock);
}
}
diff --git a/sd/source/filter/ppt/pptin.cxx b/sd/source/filter/ppt/pptin.cxx
index 749b8cc..a99f9e4 100644
--- a/sd/source/filter/ppt/pptin.cxx
+++ b/sd/source/filter/ppt/pptin.cxx
@@ -255,7 +255,7 @@ sal_Bool ImplSdPPTImport::Import()
if ( !bOk )
return FALSE;
- pSdrModel->setLock( sal_True );
+ pSdrModel->setLock(true);
pSdrModel->EnableUndo(false);
SdrOutliner& rOutl = mpDoc->GetDrawOutliner();
@@ -1407,7 +1407,7 @@ sal_Bool ImplSdPPTImport::Import()
sfx2::LoadOlePropertySet(xDocProps, &mrStorage);
xDocProps->setTemplateName(::rtl::OUString());
- pSdrModel->setLock( sal_False );
+ pSdrModel->setLock(false);
pSdrModel->EnableUndo(true);
return bOk;
}
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index 7c8606e..89bb458 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -587,7 +587,7 @@ void SAL_CALL SdXImpressDocument ::lockControllers( )
if( NULL == mpDoc )
throw lang::DisposedException();
- mpDoc->setLock( sal_True );
+ mpDoc->setLock(true);
}
void SAL_CALL SdXImpressDocument::unlockControllers( )
@@ -600,7 +600,7 @@ void SAL_CALL SdXImpressDocument::unlockControllers( )
if( mpDoc->isLocked() )
{
- mpDoc->setLock( sal_False );
+ mpDoc->setLock(false);
}
}
More information about the Libreoffice-commits
mailing list