summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-08-17 01:18:55 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-08-17 05:15:23 +0200
commitb839be53a78f64d4613765fd5f39f51fc7893423 (patch)
tree78e142fc3fac26ee6794ae3ceef96dacbb16dd7a /sw
parenteb8d716fb57ee1cf1c1b6b0057f296bf2f79e5f9 (diff)
warning C4800: 'int' : forcing value to bool 'true' or 'false'
Change-Id: I810e2b963f02c67d10765444cae2b5ec846af746
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/inc/frame.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/inc/frame.hxx b/sw/source/core/inc/frame.hxx
index 0433e7e1072c..825b452b19fb 100644
--- a/sw/source/core/inc/frame.hxx
+++ b/sw/source/core/inc/frame.hxx
@@ -1140,7 +1140,7 @@ inline const SwFrm *SwFrm::FindPrev() const
inline bool SwFrm::IsLayoutFrm() const
{
- return GetType() & FRM_LAYOUT;
+ return (GetType() & FRM_LAYOUT) != 0;
}
inline bool SwFrm::IsRootFrm() const
{
@@ -1156,7 +1156,7 @@ inline bool SwFrm::IsColumnFrm() const
}
inline bool SwFrm::IsFtnBossFrm() const
{
- return GetType() & FRM_FTNBOSS;
+ return (GetType() & FRM_FTNBOSS) != 0;
}
inline bool SwFrm::IsHeaderFrm() const
{
@@ -1200,7 +1200,7 @@ inline bool SwFrm::IsCellFrm() const
}
inline bool SwFrm::IsCntntFrm() const
{
- return GetType() & FRM_CNTNT;
+ return (GetType() & FRM_CNTNT) != 0;
}
inline bool SwFrm::IsTxtFrm() const
{
@@ -1212,15 +1212,15 @@ inline bool SwFrm::IsNoTxtFrm() const
}
inline bool SwFrm::IsFlowFrm() const
{
- return GetType() & 0xCA00; //TabFrm, CntntFrm, SectionFrm
+ return (GetType() & 0xCA00) != 0; //TabFrm, CntntFrm, SectionFrm
}
inline bool SwFrm::IsRetoucheFrm() const
{
- return GetType() & 0xCA40; //TabFrm, CntntFrm, SectionFrm, Ftnfrm
+ return (GetType() & 0xCA40) != 0; //TabFrm, CntntFrm, SectionFrm, Ftnfrm
}
inline bool SwFrm::IsAccessibleFrm() const
{
- return GetType() & FRM_ACCESSIBLE;
+ return (GetType() & FRM_ACCESSIBLE) != 0;
}
#endif