Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
4.5.0, 4.5.1, 4.5.2, 4.5.3, 4.6.0, 4.6.1, 4.6.2, 4.6.3, 4.7.0, 4.7.1, 4.8.0
-
None
Description
Hi,
Various functions in q3textstream.h and q3cstring.h are declared Q_COMPAT_EXPORT inline, which doesn't make much sense. It probably makes sense to keep exporting them for backward compatibility, but there is no reason to import them, as gcc notices:
In file included from c:/src/qt/include/Qt3Support/q3cstring.h:1,
from c:/src/qt/include/Qt3Support/../../src/qt3support/text/q3textstream.h:50,
from c:/src/qt/include/Qt3Support/q3textstream.h:1,
from main.cpp:4:
c:/src/qt/include/Qt3Support/../../src/qt3support/tools/q3cstring.h:164: warning: inline function 'bool operator==(const Q3CString&, const Q3CString&)' declared as dllimport: attribute ignored
This is analogous to the case of Q_GUI_EXPORT_INLINE, which is already handled in qglobal.h. Trivial patch attached.