summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source/filter/lwpfilter.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-04-22 14:14:14 +0200
committerNoel Grandin <noel@peralex.com>2014-04-23 11:11:50 +0200
commit2692047aacef7b4288f995ce6ff2db5e16b71014 (patch)
tree2d43552ad1a01cfb6287d54f35b5ae3ca538393b /lotuswordpro/source/filter/lwpfilter.cxx
parentlingucomponent: sal_Bool->bool (diff)
downloadcore-2692047aacef7b4288f995ce6ff2db5e16b71014.tar.gz
core-2692047aacef7b4288f995ce6ff2db5e16b71014.zip
lotuswordpro: sal_Bool->bool
Change-Id: I017d284a2fbc8d50a9928c9d934ffe710b0c652f
Diffstat (limited to 'lotuswordpro/source/filter/lwpfilter.cxx')
-rw-r--r--lotuswordpro/source/filter/lwpfilter.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/lotuswordpro/source/filter/lwpfilter.cxx b/lotuswordpro/source/filter/lwpfilter.cxx
index 6f5ef47c5d67..010ac9fa73fc 100644
--- a/lotuswordpro/source/filter/lwpfilter.cxx
+++ b/lotuswordpro/source/filter/lwpfilter.cxx
@@ -136,7 +136,7 @@ void LWPFilterReader::cancel() throw (com::sun::star::uno::RuntimeException, std
#include "bento.hxx"
using namespace OpenStormBento;
#include "explode.hxx"
- sal_Bool Decompress(SvStream *pCompressed, SvStream * & pOutDecompressed)
+ bool Decompress(SvStream *pCompressed, SvStream * & pOutDecompressed)
{
pCompressed->Seek(0);
std::auto_ptr<SvStream> aDecompressed(new SvMemoryStream(4096, 4096));
@@ -148,17 +148,17 @@ using namespace OpenStormBento;
LtcBenContainer* pBentoContainer;
sal_uLong ulRet = BenOpenContainer(aLwpStream.get(), &pBentoContainer);
if (ulRet != BenErr_OK)
- return sal_False;
+ return false;
boost::scoped_ptr<LtcUtBenValueStream> aWordProData((LtcUtBenValueStream *)pBentoContainer->FindValueStreamWithPropertyName("WordProData"));
if (!aWordProData.get())
- return sal_False;
+ return false;
// decompressing
Decompression decompress(aWordProData.get(), aDecompressed.get());
if (0!= decompress.explode())
- return sal_False;
+ return false;
sal_uInt32 nPos = aWordProData->GetSize();
nPos += 0x10;
@@ -169,7 +169,7 @@ using namespace OpenStormBento;
//transfer ownership of aDecompressed's ptr
pOutDecompressed = aDecompressed.release();
- return sal_True;
+ return true;
}
/**
@@ -179,7 +179,7 @@ using namespace OpenStormBento;
* @param LwpSvStream * , created inside, deleted outside
* @param sal_Bool, sal_True -
*/
- sal_Bool GetLwpSvStream(SvStream *pStream, LwpSvStream * & pLwpSvStream)
+ bool GetLwpSvStream(SvStream *pStream, LwpSvStream * & pLwpSvStream)
{
SvStream * pDecompressed = NULL;
@@ -192,19 +192,19 @@ using namespace OpenStormBento;
if (!Decompress(pStream, pDecompressed))
{
pLwpSvStream = NULL;
- return sal_True;
+ return true;
}
pStream->Seek(0);
pDecompressed->Seek(0);
}
pLwpSvStream = NULL;
- sal_Bool bCompressed = sal_False;
+ bool bCompressed = false;
if (pDecompressed)
{
LwpSvStream *pOriginalLwpSvStream = new LwpSvStream(pStream);
pLwpSvStream = new LwpSvStream(pDecompressed, pOriginalLwpSvStream);
- bCompressed = sal_True;
+ bCompressed = true;
}
else
{