summaryrefslogtreecommitdiff
path: root/src/test/fake/legacy/service/LegacyInterfaceDBusProxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/fake/legacy/service/LegacyInterfaceDBusProxy.cpp')
-rw-r--r--src/test/fake/legacy/service/LegacyInterfaceDBusProxy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fake/legacy/service/LegacyInterfaceDBusProxy.cpp b/src/test/fake/legacy/service/LegacyInterfaceDBusProxy.cpp
index e4c5d49..64d8a56 100644
--- a/src/test/fake/legacy/service/LegacyInterfaceDBusProxy.cpp
+++ b/src/test/fake/legacy/service/LegacyInterfaceDBusProxy.cpp
@@ -23,7 +23,7 @@ std::shared_ptr<CommonAPI::DBus::DBusProxy> createLegacyInterfaceDBusProxy(
return std::make_shared<LegacyInterfaceDBusProxy>(factory, commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection);
}
-__attribute__((constructor)) void registerLegacyInterfaceDBusProxy(void) {
+INITIALIZER(registerLegacyInterfaceDBusProxy) {
CommonAPI::DBus::DBusFactory::registerProxyFactoryMethod(LegacyInterface::getInterfaceId(),
&createLegacyInterfaceDBusProxy);
}