Use explicit operator bool in TmpPath
authorMichael Andres <ma@suse.de>
Mon, 2 Sep 2013 14:57:10 +0000 (16:57 +0200)
committerMichael Andres <ma@suse.de>
Mon, 2 Sep 2013 14:57:10 +0000 (16:57 +0200)
zypp/TmpPath.cc
zypp/TmpPath.h

index 861088a..a8334cd 100644 (file)
@@ -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();
     }
index bb58f6c..39f6371 100644 (file)
@@ -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.