Remove anon namespace to solve linkage error
This commit is contained in:
parent
184538db88
commit
f60befda61
|
@ -31,16 +31,16 @@ namespace SnorePlugin {}
|
|||
using namespace SnorePlugin;
|
||||
${SNORE_PLUGIN_LOADING}
|
||||
|
||||
namespace {
|
||||
static void loadSnoreResources()
|
||||
{
|
||||
// prevent multiple symbols
|
||||
static const auto load = []() {
|
||||
${SNORE_RESOURCE_LOADING}
|
||||
};
|
||||
load();
|
||||
}
|
||||
|
||||
static void loadSnoreResources()
|
||||
{
|
||||
// prevent multiple symbols
|
||||
static const auto load = []() {
|
||||
${SNORE_RESOURCE_LOADING}
|
||||
};
|
||||
load();
|
||||
}
|
||||
|
||||
Q_COREAPP_STARTUP_FUNCTION(loadSnoreResources)
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue