From 62a213fbbe014b21855e6bfb14f5efaae14983d3 Mon Sep 17 00:00:00 2001 From: Raoul Gough Date: Tue, 14 Oct 2003 00:01:27 +0000 Subject: [PATCH] bool param for setTrace, avoids MSVC conversion performance warning at /W3 [SVN r20366] --- test/IntWrapper.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/IntWrapper.hpp b/test/IntWrapper.hpp index 15719209..8ecad87e 100755 --- a/test/IntWrapper.hpp +++ b/test/IntWrapper.hpp @@ -38,7 +38,7 @@ struct IntWrapper { inline operator boost::shared_ptr () const; - inline static void setTrace (int onoff); + inline static void setTrace (bool onoff); }; inline bool operator== (IntWrapper const &lhs, IntWrapper const &rhs); @@ -134,7 +134,7 @@ IntWrapper::operator boost::shared_ptr () const return boost::shared_ptr (new IntWrapper (*this)); } -void IntWrapper::setTrace (int onoff) +void IntWrapper::setTrace (bool onoff) { gIntWrapperTrace = onoff; }