1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Projucer: Fix gcc 4.8 build issue

This commit is contained in:
reuk 2020-06-30 17:14:10 +01:00
parent 013fd5e5d6
commit 2d103ce8f2
2 changed files with 9 additions and 2 deletions

View file

@ -26,6 +26,13 @@
#include "../../Application/jucer_Headers.h"
#include "jucer_VersionInfo.h"
VersionInfo::VersionInfo (String versionIn, String releaseNotesIn, std::vector<Asset> assetsIn)
: versionString (std::move (versionIn)),
releaseNotes (std::move (releaseNotesIn)),
assets (std::move (assetsIn))
{}
std::unique_ptr<VersionInfo> VersionInfo::fetchFromUpdateServer (const String& versionString)
{
return fetch ("tags/" + versionString);
@ -110,5 +117,5 @@ std::unique_ptr<VersionInfo> VersionInfo::fetch (const String& endpoint)
}
}
return std::unique_ptr<VersionInfo> (new VersionInfo ({ versionString, releaseNotes, std::move (parsedAssets) }));
return std::unique_ptr<VersionInfo> (new VersionInfo { versionString, releaseNotes, std::move (parsedAssets) });
}

View file

@ -47,7 +47,7 @@ public:
const std::vector<Asset> assets;
private:
VersionInfo() = delete;
VersionInfo (String version, String releaseNotes, std::vector<Asset> assets);
static std::unique_ptr<VersionInfo> fetch (const String&);
};