Remove anon namespace to solve linkage error

This commit is contained in:
Max Risukhin 2018-10-15 21:05:30 +03:00 committed by Max Risuhin
parent 184538db88
commit f60befda61
No known key found for this signature in database
GPG Key ID: BF733F5ACA0B4448
1 changed files with 9 additions and 9 deletions

View File

@ -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