projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b257fb
)
Use explicit operator bool in TmpPath
author
Michael Andres
<ma@suse.de>
Mon, 2 Sep 2013 14:57:10 +0000
(16:57 +0200)
committer
Michael Andres
<ma@suse.de>
Mon, 2 Sep 2013 14:57:10 +0000
(16:57 +0200)
zypp/TmpPath.cc
patch
|
blob
|
history
zypp/TmpPath.h
patch
|
blob
|
history
diff --git
a/zypp/TmpPath.cc
b/zypp/TmpPath.cc
index
861088a
..
a8334cd
100644
(file)
--- 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
(file)
--- 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.