Skip to content

Commit

Permalink
QtCore/Windows: Fix inconsistent linkage of helper qAppFileName()
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
FriedemannKleint authored and amirmasoudabdol committed Jan 31, 2023
1 parent 6c5939b commit a14dcc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corelib/kernel/qcoreapplication_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a14dcc7

Please sign in to comment.