summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-01-27 09:38:39 +0100
committerAmir Masoud Abdol <amir.abdol@qt.io>2023-01-31 10:46:49 +0100
commita14dcc7ad12cd5d0bfdca2b9134cf6a5642799ab (patch)
treee799e34e491b2477a9a856673b89c30309cc76dd /src
parent6c5939b1677a896a5abecd80bbecd2f70051d9e5 (diff)
QtCore/Windows: Fix inconsistent linkage of helper qAppFileName()
MSVC is complaining about inconsistent linkage in CMake Unity (Jumbo) builds since the export is not declared. Since it is neither used nor declared in any header, remove the export. Pick-to: 6.5 Task-number: QTBUG-109394 Change-Id: Ie6dbad0188b7fa42c0abd40c48cb50129badb38e Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/kernel/qcoreapplication_win.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qcoreapplication_win.cpp b/src/corelib/kernel/qcoreapplication_win.cpp
index 0fe14af798..3a69bec25b 100644
--- a/src/corelib/kernel/qcoreapplication_win.cpp
+++ b/src/corelib/kernel/qcoreapplication_win.cpp
@@ -21,7 +21,7 @@ QT_BEGIN_NAMESPACE
using namespace Qt::StringLiterals;
-Q_CORE_EXPORT QString qAppFileName() // get application file name
+QString qAppFileName() // get application file name
{
/*
GetModuleFileName() returns the length of the module name, when it has