Utils: Export TypedAspect

Without the export, when compiled on macOS (with clang), the call
"runControl()->aspect<RunAsRootAspect>()" in runcontrol.cpp would
return a nullptr, since ProjectExplorer and libUtils had different
vtables for TypedAspect<bool>.

Task-number: QTCREATORBUG-30516
Change-Id: Ic3cef6545e97f59af2a1138f13762c07d9402e4a
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-03-12 09:41:02 +01:00
parent da3bc4e86e
commit d5750f8cb7

View File

@@ -280,7 +280,7 @@ QTCREATOR_UTILS_EXPORT void createItem(Layouting::LayoutItem *item, const BaseAs
QTCREATOR_UTILS_EXPORT void createItem(Layouting::LayoutItem *item, const BaseAspect *aspect);
template <typename ValueType>
class TypedAspect : public BaseAspect
class QTCREATOR_UTILS_EXPORT TypedAspect : public BaseAspect
{
public:
using valueType = ValueType;