summaryrefslogtreecommitdiff
path: root/package/source/zippackage
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-20 17:18:33 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-20 17:25:46 +0200
commit2a455e4a36fe41f0c7a6e6a87582529043d7520f (patch)
tree59aaaf04d8c646a703e2fe1ec5047c204a56656e /package/source/zippackage
parent398027e8b218d88837c169baca3a9213237cbc0d (diff)
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: I1879dece7dfb206dd55b13ca5572b962e20d37f5
Diffstat (limited to 'package/source/zippackage')
-rw-r--r--package/source/zippackage/ZipPackage.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx
index 4b9a67105613..84cf1f757246 100644
--- a/package/source/zippackage/ZipPackage.cxx
+++ b/package/source/zippackage/ZipPackage.cxx
@@ -862,7 +862,7 @@ sal_Bool SAL_CALL ZipPackage::hasByHierarchicalName( const OUString& aName )
FolderHash::iterator aIter;
if ( ( nIndex = aName.getLength() ) == 1 && *aName.getStr() == '/' )
- return sal_True;
+ return true;
try
{
@@ -879,7 +879,7 @@ sal_Bool SAL_CALL ZipPackage::hasByHierarchicalName( const OUString& aName )
sal_Int32 nDirIndex = aName.lastIndexOf ( '/', nStreamIndex );
sTemp = aName.copy ( nDirIndex == -1 ? 0 : nDirIndex+1, nStreamIndex-nDirIndex-1 );
if ( sTemp == ( *aIter ).second->getName() )
- return sal_True;
+ return true;
else
m_aRecent.erase ( aIter );
}
@@ -887,7 +887,7 @@ sal_Bool SAL_CALL ZipPackage::hasByHierarchicalName( const OUString& aName )
{
sTemp = aName.copy ( nStreamIndex + 1 );
if ( ( *aIter ).second->hasByName( sTemp ) )
- return sal_True;
+ return true;
else
m_aRecent.erase( aIter );
}
@@ -896,7 +896,7 @@ sal_Bool SAL_CALL ZipPackage::hasByHierarchicalName( const OUString& aName )
else
{
if ( m_pRootFolder->hasByName ( aName ) )
- return sal_True;
+ return true;
}
ZipPackageFolder * pCurrent = m_pRootFolder;
ZipPackageFolder * pPrevious = nullptr;
@@ -912,13 +912,13 @@ sal_Bool SAL_CALL ZipPackage::hasByHierarchicalName( const OUString& aName )
pCurrent = pCurrent->doGetByName( sTemp ).pFolder;
}
else
- return sal_False;
+ return false;
nOldIndex = nIndex+1;
}
if ( bFolder )
{
m_aRecent[sDirName] = pPrevious;
- return sal_True;
+ return true;
}
else
{
@@ -927,7 +927,7 @@ sal_Bool SAL_CALL ZipPackage::hasByHierarchicalName( const OUString& aName )
if ( pCurrent->hasByName( sTemp ) )
{
m_aRecent[sDirName] = pCurrent;
- return sal_True;
+ return true;
}
}
}
@@ -942,7 +942,7 @@ sal_Bool SAL_CALL ZipPackage::hasByHierarchicalName( const OUString& aName )
OUString("ZipPackage::hasByHierarchicalName"),
nullptr, e);
}
- return sal_False;
+ return false;
}
uno::Reference< XInterface > SAL_CALL ZipPackage::createInstance()
@@ -1513,7 +1513,7 @@ void SAL_CALL ZipPackage::commitChanges()
TransferInfo aInfo;
aInfo.NameClash = NameClash::OVERWRITE;
- aInfo.MoveData = sal_False;
+ aInfo.MoveData = false;
aInfo.SourceURL = sTempURL;
aInfo.NewTitle = rtl::Uri::decode ( m_aURL.copy ( 1 + m_aURL.lastIndexOf ( static_cast < sal_Unicode > ( '/' ) ) ),
rtl_UriDecodeWithCharset,
@@ -1555,7 +1555,7 @@ void ZipPackage::DisconnectFromTargetAndThrowException_Impl( const uno::Referenc
uno::Any aUrl = xTempFile->getPropertyValue("Uri");
aUrl >>= aTempURL;
xTempFile->setPropertyValue("RemoveFile",
- uno::makeAny( sal_False ) );
+ uno::makeAny( false ) );
}
catch ( uno::Exception& )
{
@@ -1601,7 +1601,7 @@ const uno::Sequence< sal_Int8 > ZipPackage::GetEncryptionKey()
sal_Bool SAL_CALL ZipPackage::hasPendingChanges()
throw( RuntimeException, std::exception )
{
- return sal_False;
+ return false;
}
Sequence< ElementChange > SAL_CALL ZipPackage::getPendingChanges()
throw( RuntimeException, std::exception )