diff options
author | Mark Wright <markwright@internode.on.net> | 2013-02-10 02:04:02 +1100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2013-11-05 10:39:51 +0100 |
commit | 10e3a8b32868151a04c59b60b56f0b80c8c50cbe (patch) | |
tree | 1a6b24177c070f5f2b0a380c457baf3a23cef3a0 /comphelper | |
parent | 59131d5ec7c138677d3ca24f8969a3be1701e0a5 (diff) |
fix compile for change to boost 1.53.0 declaring smart pointer operator bool as explicity for C++11 compilers
Change-Id: If2c3ad68b2ffea645a9f2035cd802553edc0ee79
Reviewed-on: https://gerrit.libreoffice.org/2064
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
(cherry picked from commit d4bab97023e3569571a92551040574b20aceca7c)
Signed-off-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/inc/comphelper/scoped_disposing_ptr.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/inc/comphelper/scoped_disposing_ptr.hxx b/comphelper/inc/comphelper/scoped_disposing_ptr.hxx index 9b4fe1bc6922..6c34074b4270 100644 --- a/comphelper/inc/comphelper/scoped_disposing_ptr.hxx +++ b/comphelper/inc/comphelper/scoped_disposing_ptr.hxx @@ -78,7 +78,7 @@ public: operator bool () const { - return m_aItem; + return static_cast< bool >(m_aItem); } virtual ~scoped_disposing_ptr() |