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:
ccdc891
)
add operator bool() to test for a valid Source&
author
Klaus Kaempf
<kkaempf@suse.de>
Fri, 27 Jan 2006 13:48:00 +0000
(13:48 +0000)
committer
Klaus Kaempf
<kkaempf@suse.de>
Fri, 27 Jan 2006 13:48:00 +0000
(13:48 +0000)
zypp/Source.h
patch
|
blob
|
history
diff --git
a/zypp/Source.h
b/zypp/Source.h
index
7ba570e
..
0d2a6d9
100644
(file)
--- a/
zypp/Source.h
+++ b/
zypp/Source.h
@@
-87,6
+87,12
@@
namespace zypp
void disable();
std::string alias (void) const;
+
+ /** Conversion to bool to allow pointer style tests
+ * for nonNULL \ref resolvable. */
+ operator bool() const
+ { return _pimpl; }
+
};
///////////////////////////////////////////////////////////////////