summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-08-17 01:06:31 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-08-17 05:15:20 +0200
commit4f1dabfd44c105d533689c181189868ce1cce79e (patch)
tree3869ce419d191452c5439eacea478b25f434dcf9 /sc
parent0842a2707cfca15c0af5eee6ed9d76547a01a7f9 (diff)
warning C4800: 'int' : forcing value to bool 'true' or 'false'
Change-Id: Ic438fe098f80e96dd4679dda6e5de93a1ba9dc6a
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/inc/viewdata.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/inc/viewdata.hxx b/sc/source/ui/inc/viewdata.hxx
index bcbca5620004..bb3e26373158 100644
--- a/sc/source/ui/inc/viewdata.hxx
+++ b/sc/source/ui/inc/viewdata.hxx
@@ -285,8 +285,8 @@ public:
SCCOL GetFixPosX() const { return pThisTab->nFixPosX; }
SCROW GetFixPosY() const { return pThisTab->nFixPosY; }
bool IsPagebreakMode() const { return bPagebreak; }
- bool IsPasteMode() const { return nPasteFlags & SC_PASTE_MODE; }
- bool ShowPasteSource() const { return nPasteFlags & SC_PASTE_BORDER; }
+ bool IsPasteMode() const { return (nPasteFlags & SC_PASTE_MODE) != 0; }
+ bool ShowPasteSource() const { return (nPasteFlags & SC_PASTE_BORDER) != 0; }
void SetPosX( ScHSplitPos eWhich, SCCOL nNewPosX );
void SetPosY( ScVSplitPos eWhich, SCROW nNewPosY );