summaryrefslogtreecommitdiffstats
path: root/src/qtwaylandscanner
diff options
context:
space:
mode:
authorAndrew Knight <andrew.knight@digia.com>2013-08-22 16:19:45 +0300
committerAndy Nichols <andy.nichols@digia.com>2013-08-22 16:42:43 +0200
commite8e5457165d6797b2a2d33a73c9b362e82688459 (patch)
treeac0d83e37d588c61c56d813d27fcbbc72ee29067 /src/qtwaylandscanner
parentabe1be628da687b1943a41e5411f34f646aeca86 (diff)
qtwaylandscanner: fix binding delegate to track resources
Global extension objects created with qtwaylandscanner may need to track their child resource list. This ensures bound objects are added to that list. Change-Id: I2875d84d2108ddad664c52ed1a11173312ff1b04 Reviewed-by: Jan Arne Petersen <jan.petersen@kdab.com> Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Diffstat (limited to 'src/qtwaylandscanner')
-rw-r--r--src/qtwaylandscanner/qtwaylandscanner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qtwaylandscanner/qtwaylandscanner.cpp b/src/qtwaylandscanner/qtwaylandscanner.cpp
index 9bb4e36e7..0df2d0c37 100644
--- a/src/qtwaylandscanner/qtwaylandscanner.cpp
+++ b/src/qtwaylandscanner/qtwaylandscanner.cpp
@@ -601,7 +601,7 @@ void process(QXmlStreamReader &xml)
printf(" void %s::bind_func(struct ::wl_client *client, void *data, uint32_t version, uint32_t id)\n", interfaceName);
printf(" {\n");
printf(" Q_UNUSED(version);\n");
- printf(" static_cast<%s *>(data)->bind(client, id);\n", interfaceName);
+ printf(" static_cast<%s *>(data)->add(client, id);\n", interfaceName);
printf(" }\n");
printf("\n");