Commit c003cb94 authored by Tobias Hunger's avatar Tobias Hunger

QtC Plugin Wizard: Use #pragma once

No need to discuss individual header guards that way;-)

And that is what we want to use in Qt Creator now anyway.

Change-Id: Idb2d7a34ea3c5d99c18c696eaed4023c12c01930
Task-number: QTCREATORBUG-15861
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
parent 5a7b517a
#ifndef %PluginName:u%_%CppHeaderSuffix:u%
#define %PluginName:u%_%CppHeaderSuffix:u%
#pragma once
#include "%PluginName:l%_global.%CppHeaderSuffix%"
......@@ -27,5 +26,3 @@ private slots:
} // namespace Internal
} // namespace %PluginName%
#endif // %PluginName:u%_%CppHeaderSuffix:u%
#ifndef %PluginName:u%_GLOBAL_%CppHeaderSuffix:u%
#define %PluginName:u%_GLOBAL_%CppHeaderSuffix:u%
#pragma once
#include <QtGlobal>
......@@ -8,5 +7,3 @@
#else
# define %PluginName:u%SHARED_EXPORT Q_DECL_IMPORT
#endif
#endif // %PluginName:u%_GLOBAL_H
#ifndef %PluginName:u%CONSTANTS_%CppHeaderSuffix:u%
#define %PluginName:u%CONSTANTS_%CppHeaderSuffix:u%
#pragma once
namespace %PluginName% {
namespace Constants {
......@@ -9,5 +8,3 @@ const char MENU_ID[] = "%PluginName%.Menu";
} // namespace %PluginName%
} // namespace Constants
#endif // %PluginName:u%CONSTANTS_%CppHeaderSuffix:u%
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment