From 213f868a90230ed8a7552e15952390adec02da81 Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Mon, 2 Sep 2013 16:57:10 +0200 Subject: [PATCH] Use explicit operator bool in TmpPath --- zypp/TmpPath.cc | 2 +- zypp/TmpPath.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zypp/TmpPath.cc b/zypp/TmpPath.cc index 861088a..a8334cd 100644 --- a/zypp/TmpPath.cc +++ b/zypp/TmpPath.cc @@ -132,7 +132,7 @@ namespace zypp { // METHOD NAME : TmpPath::operator const void * // METHOD TYPE : // - TmpPath::operator const void * () const + TmpPath::operator bool() const { return _impl.get(); } diff --git a/zypp/TmpPath.h b/zypp/TmpPath.h index bb58f6c..39f6371 100644 --- a/zypp/TmpPath.h +++ b/zypp/TmpPath.h @@ -60,7 +60,7 @@ namespace zypp { * Test whether the Pathname is valid (i.e. not empty. NOT whether * it really denotes an existing file or directory). **/ - operator const void * () const; + explicit operator bool() const; /** * @return The Pathname. -- 2.7.4