[telepathy-qt4/master] Give generated types' operators the same visibility as the type
Simon McVittie
simon.mcvittie at collabora.co.uk
Fri Dec 4 07:30:51 PST 2009
---
tools/qt4-types-gen.py | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/tools/qt4-types-gen.py b/tools/qt4-types-gen.py
index 02714de..2bd1ec1 100644
--- a/tools/qt4-types-gen.py
+++ b/tools/qt4-types-gen.py
@@ -362,8 +362,10 @@ struct %(visibility)s %(name)s
""")
- self.both('bool operator==(%s v1, %s v2)' %
- (depinfo.binding.inarg, depinfo.binding.inarg))
+ self.both('%s bool operator==(%s v1, %s v2)' %
+ (self.visibility,
+ depinfo.binding.inarg,
+ depinfo.binding.inarg))
self.decl(';\n')
self.impl("""
{""")
@@ -394,7 +396,8 @@ struct %(visibility)s %(name)s
}
""")
- self.both('QDBusArgument& operator<<(QDBusArgument& arg, %s val)' % depinfo.binding.inarg)
+ self.both('%s QDBusArgument& operator<<(QDBusArgument& arg, %s val)' %
+ (self.visibility, depinfo.binding.inarg))
self.decl(';\n')
self.impl("""
{
@@ -406,7 +409,8 @@ struct %(visibility)s %(name)s
""" % ' << '.join(['val.' + name for name in names]))
- self.both('const QDBusArgument& operator>>(const QDBusArgument& arg, %s val)' % depinfo.binding.outarg)
+ self.both('%s const QDBusArgument& operator>>(const QDBusArgument& arg, %s val)' %
+ (self.visibility, depinfo.binding.outarg))
self.decl(';\n\n')
self.impl("""
{
--
1.5.6.5
More information about the telepathy-commits
mailing list