mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-20 01:14:20 +00:00
Made a lot of ScopedPointer usage conform to the std::unique_ptr interface
This commit is contained in:
parent
2d9fc46b4e
commit
4229dc0a4f
99 changed files with 6809 additions and 498 deletions
|
|
@ -213,8 +213,7 @@ public:
|
|||
|
||||
void restartServer()
|
||||
{
|
||||
server.reset();
|
||||
server = new ClientIPC (owner);
|
||||
server.reset (new ClientIPC (owner));
|
||||
sendRebuild();
|
||||
}
|
||||
|
||||
|
|
@ -516,7 +515,7 @@ CompileEngineChildProcess::~CompileEngineChildProcess()
|
|||
void CompileEngineChildProcess::createProcess()
|
||||
{
|
||||
jassert (process == nullptr);
|
||||
process = new ChildProcess (*this, project);
|
||||
process.reset (new ChildProcess (*this, project));
|
||||
|
||||
if (! process->openedOk)
|
||||
process.reset();
|
||||
|
|
@ -598,7 +597,7 @@ void CompileEngineChildProcess::killApp()
|
|||
|
||||
void CompileEngineChildProcess::handleAppLaunched()
|
||||
{
|
||||
runningAppProcess = process;
|
||||
runningAppProcess.reset (process.release());
|
||||
runningAppProcess->isRunningApp = true;
|
||||
createProcess();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue