fix: don't use forward-declared Ptr types in meta/
This would cause ODR violations when those headers were included in other places that also included stuff like "Version.h" (note the "meta/Version.h"), which can cause problems, especially in LTO. Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
f6a3fa55b1
commit
7956e6f04e
28 changed files with 120 additions and 118 deletions
|
@ -53,7 +53,7 @@ std::optional<QVector<QString>> AtlUserInteractionSupportImpl::chooseOptionalMod
|
|||
return optionalModDialog.getResult();
|
||||
}
|
||||
|
||||
QString AtlUserInteractionSupportImpl::chooseVersion(Meta::VersionListPtr vlist, QString minecraftVersion)
|
||||
QString AtlUserInteractionSupportImpl::chooseVersion(Meta::VersionList::Ptr vlist, QString minecraftVersion)
|
||||
{
|
||||
VersionSelectDialog vselect(vlist.get(), "Choose Version", m_parent, false);
|
||||
if (minecraftVersion != nullptr) {
|
||||
|
|
|
@ -46,7 +46,7 @@ public:
|
|||
AtlUserInteractionSupportImpl(QWidget* parent);
|
||||
|
||||
private:
|
||||
QString chooseVersion(Meta::VersionListPtr vlist, QString minecraftVersion) override;
|
||||
QString chooseVersion(Meta::VersionList::Ptr vlist, QString minecraftVersion) override;
|
||||
std::optional<QVector<QString>> chooseOptionalMods(ATLauncher::PackVersion version, QVector<ATLauncher::VersionMod> mods) override;
|
||||
void displayMessage(QString message) override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue