diff options
| author | ruki <[email protected]> | 2025-11-09 19:51:04 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-11-09 19:51:04 +0800 |
| commit | 91f6ed08fe32e36d555129efa4afdd82113f0eb4 (patch) | |
| tree | 2bfee23488c8479c83833677262ee83b9e362cbb /xmake/templates/c++/qt.shared/project/src | |
| parent | c89c94bf89e98c8e42e786aacc0b334a57474179 (diff) | |
format tests and templates
Diffstat (limited to 'xmake/templates/c++/qt.shared/project/src')
| -rw-r--r-- | xmake/templates/c++/qt.shared/project/src/demo.cpp | 4 | ||||
| -rw-r--r-- | xmake/templates/c++/qt.shared/project/src/demo.h | 6 | ||||
| -rw-r--r-- | xmake/templates/c++/qt.shared/project/src/demo_global.h | 4 |
3 files changed, 5 insertions, 9 deletions
diff --git a/xmake/templates/c++/qt.shared/project/src/demo.cpp b/xmake/templates/c++/qt.shared/project/src/demo.cpp index bd791c271..576c861f0 100644 --- a/xmake/templates/c++/qt.shared/project/src/demo.cpp +++ b/xmake/templates/c++/qt.shared/project/src/demo.cpp @@ -1,6 +1,4 @@ #include "demo.h" - -QtDemo::QtDemo() -{ +QtDemo::QtDemo() { } diff --git a/xmake/templates/c++/qt.shared/project/src/demo.h b/xmake/templates/c++/qt.shared/project/src/demo.h index a0c8d28c6..89f29ec46 100644 --- a/xmake/templates/c++/qt.shared/project/src/demo.h +++ b/xmake/templates/c++/qt.shared/project/src/demo.h @@ -3,10 +3,8 @@ #include "demo_global.h" -class QT_DEMOSHARED_EXPORT QtDemo -{ - -public: +class QT_DEMOSHARED_EXPORT QtDemo { + public: QtDemo(); }; diff --git a/xmake/templates/c++/qt.shared/project/src/demo_global.h b/xmake/templates/c++/qt.shared/project/src/demo_global.h index a1daff02a..d6b1ddf0b 100644 --- a/xmake/templates/c++/qt.shared/project/src/demo_global.h +++ b/xmake/templates/c++/qt.shared/project/src/demo_global.h @@ -4,9 +4,9 @@ #include <QtCore/qglobal.h> #if defined(QT_DEMO_LIBRARY) -# define QT_DEMOSHARED_EXPORT Q_DECL_EXPORT +#define QT_DEMOSHARED_EXPORT Q_DECL_EXPORT #else -# define QT_DEMOSHARED_EXPORT Q_DECL_IMPORT +#define QT_DEMOSHARED_EXPORT Q_DECL_IMPORT #endif #endif // QT_DEMO_GLOBAL_H |
