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.

Task-number: QTBUG-109394
Change-Id: Ie6dbad0188b7fa42c0abd40c48cb50129badb38e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit a14dcc7ad12cd5d0bfdca2b9134cf6a5642799ab)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Friedemann Kleint 2023-01-27 09:38:39 +01:00 committed by Qt Cherry-pick Bot
parent 8ce6b61ef7
commit adc269f40a

View File

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