summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-08-17 01:55:03 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-08-17 05:15:27 +0200
commitf05d1812c069ad4471da21a8b6a0f9cc7717e37e (patch)
treec66c5c46ab12cdcb2de849bae228c6ef7599ffcf /lotuswordpro
parent159eb0839909991c3f8206f3b1862587f2919d0a (diff)
warning C4800: forcing value to bool 'true' or 'false'
Change-Id: I116d5e14116e6853765bce552b6b8a71c835942e
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwpborderstuff.cxx2
-rw-r--r--lotuswordpro/source/filter/lwpdlvlist.cxx2
-rw-r--r--lotuswordpro/source/filter/lwpfrib.cxx2
-rw-r--r--lotuswordpro/source/filter/lwpmarker.cxx2
-rw-r--r--lotuswordpro/source/filter/lwpoverride.cxx2
-rw-r--r--lotuswordpro/source/filter/lwppara.cxx2
-rw-r--r--lotuswordpro/source/filter/lwpsection.cxx4
7 files changed, 8 insertions, 8 deletions
diff --git a/lotuswordpro/source/filter/lwpborderstuff.cxx b/lotuswordpro/source/filter/lwpborderstuff.cxx
index e1d5e88702dd..af80668639d8 100644
--- a/lotuswordpro/source/filter/lwpborderstuff.cxx
+++ b/lotuswordpro/source/filter/lwpborderstuff.cxx
@@ -158,7 +158,7 @@ void LwpBorderStuff::Read(LwpObjectStream *pStrm)
bool LwpBorderStuff::HasSide(sal_uInt16 side)
{
- return m_nSides&side;
+ return (m_nSides & side) != 0;
}
sal_uInt16 LwpBorderStuff::GetSideType(sal_uInt16 side)
diff --git a/lotuswordpro/source/filter/lwpdlvlist.cxx b/lotuswordpro/source/filter/lwpdlvlist.cxx
index 1698e68f8085..673e61907790 100644
--- a/lotuswordpro/source/filter/lwpdlvlist.cxx
+++ b/lotuswordpro/source/filter/lwpdlvlist.cxx
@@ -143,7 +143,7 @@ void LwpDLNFPVList::ReadPropertyList(LwpObjectStream* pObjStrm)
{
if( LwpFileHeader::m_nFileRevision >= 0x0000B)
{
- m_bHasProperties = pObjStrm->QuickReaduInt8();
+ m_bHasProperties = pObjStrm->QuickReaduInt8() != 0;
if (m_bHasProperties)
{
m_pPropList = new LwpPropList;
diff --git a/lotuswordpro/source/filter/lwpfrib.cxx b/lotuswordpro/source/filter/lwpfrib.cxx
index 32c6120f363d..61d5324a224c 100644
--- a/lotuswordpro/source/filter/lwpfrib.cxx
+++ b/lotuswordpro/source/filter/lwpfrib.cxx
@@ -132,7 +132,7 @@ LwpFrib* LwpFrib::CreateFrib(LwpPara* pPara, LwpObjectStream* pObjStrm, sal_uInt
break;
case FRIB_TAG_TEXT:
{
- newFrib = new LwpFribText (pPara, fribtag & FRIB_TAG_NOUNICODE);
+ newFrib = new LwpFribText (pPara, (fribtag & FRIB_TAG_NOUNICODE) != 0);
break;
}
case FRIB_TAG_TABLE:
diff --git a/lotuswordpro/source/filter/lwpmarker.cxx b/lotuswordpro/source/filter/lwpmarker.cxx
index c7f55d339a18..f94410f3a851 100644
--- a/lotuswordpro/source/filter/lwpmarker.cxx
+++ b/lotuswordpro/source/filter/lwpmarker.cxx
@@ -300,7 +300,7 @@ bool LwpCHBlkMarker::IsHasFilled()
bool LwpCHBlkMarker::IsBubbleHelp()
{
- return (CHB_HELP & m_nFlag);
+ return (CHB_HELP & m_nFlag) != 0;
}
void LwpCHBlkMarker::EnumAllKeywords()
diff --git a/lotuswordpro/source/filter/lwpoverride.cxx b/lotuswordpro/source/filter/lwpoverride.cxx
index 814689a6bda6..1563f9a25b0f 100644
--- a/lotuswordpro/source/filter/lwpoverride.cxx
+++ b/lotuswordpro/source/filter/lwpoverride.cxx
@@ -170,7 +170,7 @@ void LwpTextAttributeOverride::Read(LwpObjectStream* pStrm)
bool LwpTextAttributeOverride::IsHighlight()
{
- return (m_nValues & TAO_HIGHLIGHT);
+ return (m_nValues & TAO_HIGHLIGHT) != 0;
}
/*class LwpKinsokuOptsOverride*/
diff --git a/lotuswordpro/source/filter/lwppara.cxx b/lotuswordpro/source/filter/lwppara.cxx
index 3fbf44ef9a85..c18319e7e0e4 100644
--- a/lotuswordpro/source/filter/lwppara.cxx
+++ b/lotuswordpro/source/filter/lwppara.cxx
@@ -166,7 +166,7 @@ void LwpPara::Read()
if(LwpFileHeader::m_nFileRevision<0x0006)
Simple = false;
else if(LwpFileHeader::m_nFileRevision<0x000B)
- Simple = m_pObjStrm->QuickReaduInt8();
+ Simple = m_pObjStrm->QuickReaduInt8() != 0;
else
{
sal_uInt8 Flag = m_pObjStrm->QuickReaduInt8();
diff --git a/lotuswordpro/source/filter/lwpsection.cxx b/lotuswordpro/source/filter/lwpsection.cxx
index 42838566014d..ba9c512f5ab8 100644
--- a/lotuswordpro/source/filter/lwpsection.cxx
+++ b/lotuswordpro/source/filter/lwpsection.cxx
@@ -148,13 +148,13 @@ void LwpIndexSection::Read()
bool LwpIndexSection::IsFormatRunin()
{
- return (m_nFlags & RUN_IN);
+ return (m_nFlags & RUN_IN) != 0;
}
bool LwpIndexSection::IsFormatSeparator()
{
- return (m_nFlags & SEPARATORS);
+ return (m_nFlags & SEPARATORS) != 0;
}