diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-08-17 01:16:40 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-08-17 05:15:22 +0200 |
commit | eb8d716fb57ee1cf1c1b6b0057f296bf2f79e5f9 (patch) | |
tree | ee4393f532dcac22bc6e0afee124dfaa5a8b5b27 /sw | |
parent | fe3b29126ee5aa054424dc8c3dcc2e4c64398984 (diff) |
warning C4800: 'int' : forcing value to bool 'true' or 'false'
Change-Id: Iae7dd3944d1d01020c8a3ab1ac4bb2e94e01541e
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/porlin.hxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sw/source/core/text/porlin.hxx b/sw/source/core/text/porlin.hxx index 567b4080a20b..8e0eb6cb9b30 100644 --- a/sw/source/core/text/porlin.hxx +++ b/sw/source/core/text/porlin.hxx @@ -108,18 +108,18 @@ public: inline sal_uInt16 GetWhichPor( ) const { return nWhichPor; } // Group queries - inline bool InTxtGrp() const { return nWhichPor & PORGRP_TXT; } - inline bool InGlueGrp() const { return nWhichPor & PORGRP_GLUE; } - inline bool InTabGrp() const { return nWhichPor & PORGRP_TAB; } - inline bool InHyphGrp() const { return nWhichPor & PORGRP_HYPH; } - inline bool InNumberGrp() const { return nWhichPor & PORGRP_NUMBER; } - inline bool InFixGrp() const { return nWhichPor & PORGRP_FIX; } - inline bool InFldGrp() const { return nWhichPor & PORGRP_FLD; } - inline bool InToxRefGrp() const { return nWhichPor & PORGRP_TOXREF; } - inline bool InToxRefOrFldGrp() const { return nWhichPor & ( PORGRP_FLD | PORGRP_TOXREF ); } - inline bool InExpGrp() const { return nWhichPor & PORGRP_EXP; } - inline bool InTabnLftGrp() const { return nWhichPor & PORGRP_TABNOTLFT; } - inline bool InFixMargGrp() const { return nWhichPor & PORGRP_FIXMARG; } + inline bool InTxtGrp() const { return (nWhichPor & PORGRP_TXT) != 0; } + inline bool InGlueGrp() const { return (nWhichPor & PORGRP_GLUE) != 0; } + inline bool InTabGrp() const { return (nWhichPor & PORGRP_TAB) != 0; } + inline bool InHyphGrp() const { return (nWhichPor & PORGRP_HYPH) != 0; } + inline bool InNumberGrp() const { return (nWhichPor & PORGRP_NUMBER) != 0; } + inline bool InFixGrp() const { return (nWhichPor & PORGRP_FIX) != 0; } + inline bool InFldGrp() const { return (nWhichPor & PORGRP_FLD) != 0; } + inline bool InToxRefGrp() const { return (nWhichPor & PORGRP_TOXREF) != 0; } + inline bool InToxRefOrFldGrp() const { return (nWhichPor & ( PORGRP_FLD | PORGRP_TOXREF )) != 0; } + inline bool InExpGrp() const { return (nWhichPor & PORGRP_EXP) != 0; } + inline bool InTabnLftGrp() const { return (nWhichPor & PORGRP_TABNOTLFT) != 0; } + inline bool InFixMargGrp() const { return (nWhichPor & PORGRP_FIXMARG) != 0; } inline bool InSpaceGrp() const { return InTxtGrp() || IsMultiPortion(); } // Individual queries inline bool IsGrfNumPortion() const { return nWhichPor == POR_GRFNUM; } |