Fixes from review comments

This commit is contained in:
Flamefire 2018-11-21 11:19:05 +01:00
parent 3b81a8e6c0
commit 9e5cbee376
2 changed files with 3 additions and 3 deletions

View file

@ -257,7 +257,7 @@ namespace detail
virtual void context_destroyed()
{
context_ = NULL;
context_ = 0;
}
friend std::ostream& operator<<(

View file

@ -14,7 +14,7 @@
namespace mock {
namespace detail {
template<typename Derived>
template< typename Derived >
class singleton {
public:
static Derived& inst() { static Derived the_inst; return the_inst; }
@ -30,7 +30,7 @@ protected:
// Add a private ctor to the type to prevent misuse
#define MOCK_SINGLETON_CONS( type ) \
private: \
friend class ::mock::detail::singleton<type>; \
friend class mock::detail::singleton< type >; \
type() {}
} // detail