From 2b4c54aa1363bf450e91172ad67db33de63c5963 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sun, 17 Aug 2014 01:57:20 +0200 Subject: [PATCH] warning C4800: forcing value to bool 'true' or 'false' Change-Id: I0bea774cd903f93721de6ffd8ed4ff9f5a15ef81 --- include/sfx2/templateabstractview.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sfx2/templateabstractview.hxx b/include/sfx2/templateabstractview.hxx index cd51d2bf67cd..00ecf03c4cf3 100644 --- a/include/sfx2/templateabstractview.hxx +++ b/include/sfx2/templateabstractview.hxx @@ -112,7 +112,7 @@ public: const OUString& getCurRegionName () const { return maCurRegionName;} // Check if the root region is visible or not. - bool isNonRootRegionVisible () const { return mnCurRegionId;} + bool isNonRootRegionVisible () const { return mnCurRegionId > 0;} void setOpenRegionHdl(const Link &rLink);