mirror of
https://git.freebsd.org/ports.git
synced 2025-06-15 09:40:35 -04:00
23 lines
663 B
C++
23 lines
663 B
C++
--- cpp/src/IceGrid/PluginFacadeI.cpp.orig 2019-08-12 19:54:18 UTC
|
|
+++ cpp/src/IceGrid/PluginFacadeI.cpp
|
|
@@ -34,10 +34,16 @@ class Init (public)
|
|
IceGrid::setRegistryPluginFacade(new RegistryPluginFacadeI);
|
|
}
|
|
|
|
- ~Init()
|
|
- {
|
|
- IceGrid::setRegistryPluginFacade(0);
|
|
- }
|
|
+/* This is a bad idea, see
|
|
+ * https://isocpp.org/wiki/faq/ctors#construct-on-first-use-v2
|
|
+ * That's why we disabled it and make sure the registrypluginfacace
|
|
+ * is reset somwhere else. Construction is still here, so that
|
|
+ * registry plugins work as expected.
|
|
+ * ~Init()
|
|
+ * {
|
|
+ * IceGrid::setRegistryPluginFacade(0);
|
|
+ * }
|
|
+ */
|
|
};
|
|
|
|
Init init;
|