Mailinglist Archive: zypp-commit (223 mails)

< Previous Next >
[zypp-commit] r10660 - /trunk/libzypp/zypp/IdString.h
  • From: mlandres@xxxxxxxxxxxxxxxx
  • Date: Thu, 24 Jul 2008 11:23:20 -0000
  • Message-id: <20080724112320.D977E56F22@xxxxxxxxxxxxxxxx>
Author: mlandres
Date: Thu Jul 24 13:23:16 2008
New Revision: 10660

URL: http://svn.opensuse.org/viewcvs/zypp?rev=10660&view=rev
Log:
disable unSWIGable code

Modified:
trunk/libzypp/zypp/IdString.h

Modified: trunk/libzypp/zypp/IdString.h
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/IdString.h?rev=10660&r1=10659&r2=10660&view=diff
==============================================================================
--- trunk/libzypp/zypp/IdString.h (original)
+++ trunk/libzypp/zypp/IdString.h Thu Jul 24 13:23:16 2008
@@ -62,9 +62,10 @@
static const IdString Empty;

public:
+#ifndef SWIG // Swig treats it as syntax error
/** Evaluate in a boolean context <tt>( != \c Null )</tt>. */
using base::SafeBool<IdString>::operator bool_type;
-
+#endif
/** Whether the string is empty.
* This is true for \ref Null and \ref Empty.
*/
@@ -102,7 +103,9 @@
IdType id() const
{ return _id; }
private:
+#ifndef SWIG // Swig treats it as syntax error
friend base::SafeBool<IdString>::operator bool_type() const;
+#endif
bool boolTest() const { return _id; }
private:
IdType _id;

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages