projects
/
platform
/
upstream
/
libzypp-bindings.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a139e60
)
Add explicit type conversion for DefaultAccept
author
Klaus Kämpf
<kkaempf@suse.de>
Tue, 19 Oct 2010 11:56:17 +0000
(13:56 +0200)
committer
Klaus Kämpf
<kkaempf@suse.de>
Tue, 19 Oct 2010 11:56:17 +0000
(13:56 +0200)
swig/KeyRing.i
patch
|
blob
|
history
diff --git
a/swig/KeyRing.i
b/swig/KeyRing.i
index
a54b9b9
..
9a95d8b
100644
(file)
--- a/
swig/KeyRing.i
+++ b/
swig/KeyRing.i
@@
-9,6
+9,12
@@
%template(DefautAccept) zypp::base::Flags<::DefautAcceptBits>;
}
+%inline %{
+ zypp::KeyRing::DefaultAccept toDefaultAccept(int bits) {
+ return (zypp::KeyRing::DefaultAccept) static_cast<zypp::KeyRing::DefaultAccept>(bits);
+ }
+%}
+
namespace zypp
{
typedef intrusive_ptr<KeyRing> KeyRing_Ptr;