1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-26 02:14:22 +00:00

Added some methods to allow ReferenceCountedObjectPtrs to be constructed or copied from references as well as pointers - as well as increasing safety, this actually makes things a bit more efficient as it skips a nullptr check. Updated lots of places in the code that could take advantage of this

This commit is contained in:
jules 2018-07-03 11:51:13 +01:00
parent 3c124095dd
commit 1e6bbb8da9
34 changed files with 309 additions and 251 deletions

View file

@ -119,7 +119,7 @@ struct ChildProcessCache
{
for (auto& p : processes)
if (&(p->project) == &project)
return p;
return *p;
return {};
}
@ -132,7 +132,7 @@ struct ChildProcessCache
auto p = new CompileEngineChildProcess (project);
tellNewProcessAboutExistingEditors (*p);
processes.add (p);
return p;
return *p;
}
static void tellNewProcessAboutExistingEditors (CompileEngineChildProcess& process)