aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools/ivigenerator/templates_frontend/struct.h.tpl
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2018-06-05 10:40:31 +0200
committerRobert Griebl <robert.griebl@pelagicore.com>2018-06-08 09:32:26 +0000
commit7dbc952b0cf3b278a1ea487b82569cde34eb5b44 (patch)
treea11729884117665e5718fc855060db4f43c9dd9a /src/tools/ivigenerator/templates_frontend/struct.h.tpl
parent472e09f1c5139c4a2504e52e1c787d46e411fe99 (diff)
Use the full module uri for the class export macro
Using the full uri makes it more unlikely that the export macro names clash with the export macro of an library with the same name. Task-number: AUTOSUITE-509 Change-Id: If5d66f7dc4d7e3e8edc4cbede1d2dfcbaad3b1d7 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
Diffstat (limited to 'src/tools/ivigenerator/templates_frontend/struct.h.tpl')
-rw-r--r--src/tools/ivigenerator/templates_frontend/struct.h.tpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/ivigenerator/templates_frontend/struct.h.tpl b/src/tools/ivigenerator/templates_frontend/struct.h.tpl
index 5eda736..e21ce93 100644
--- a/src/tools/ivigenerator/templates_frontend/struct.h.tpl
+++ b/src/tools/ivigenerator/templates_frontend/struct.h.tpl
@@ -40,7 +40,7 @@
{% import 'qtivi_macros.j2' as ivi %}
{% set class = '{0}'.format(struct) %}
{% set oncedefine = '{0}_{1}_H_'.format(module.module_name|upper, class|upper) %}
-{% set exportsymbol = 'Q_{0}_EXPORT'.format(module.module_name|upper) %}
+{% set exportsymbol = 'Q_{0}_EXPORT'.format(module|upper|replace('.', '_')) %}
{% include 'generated_comment.cpp.tpl' %}
#ifndef {{oncedefine}}