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

Fixed a std::unique_ptr compile error

This commit is contained in:
jules 2018-04-20 11:37:04 +01:00
parent 036458ed0a
commit 8454db395e
2 changed files with 3 additions and 3 deletions

View file

@ -257,7 +257,7 @@ JUCESplashScreen::~JUCESplashScreen()
{
}
Drawable* JUCESplashScreen::getSplashScreenLogo()
std::unique_ptr<Drawable> JUCESplashScreen::getSplashScreenLogo()
{
const char* svgData = R"JUCESPLASHSCREEN(
<?xml version="1.0" encoding="UTF-8"?>
@ -295,7 +295,7 @@ Drawable* JUCESplashScreen::getSplashScreenLogo()
)JUCESPLASHSCREEN";
std::unique_ptr<XmlElement> svgXml (XmlDocument::parse (svgData));
return Drawable::createFromSVG (*svgXml);
return std::unique_ptr<Drawable> (Drawable::createFromSVG (*svgXml));
}
void JUCESplashScreen::paint (Graphics& g)

View file

@ -55,7 +55,7 @@ public:
JUCESplashScreen (Component& parentToAddTo);
~JUCESplashScreen();
static Drawable* getSplashScreenLogo();
static std::unique_ptr<Drawable> getSplashScreenLogo();
private:
void paint (Graphics&) override;