mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-15 00:24:19 +00:00
Another batch of ScopedPointer cleanups
This commit is contained in:
parent
5b13063162
commit
48a5fbd333
74 changed files with 311 additions and 292 deletions
|
|
@ -38,13 +38,12 @@ ThreadWithProgressWindow::ThreadWithProgressWindow (const String& title,
|
|||
timeOutMsWhenCancelling (cancellingTimeOutMs),
|
||||
wasCancelledByUser (false)
|
||||
{
|
||||
alertWindow = LookAndFeel::getDefaultLookAndFeel()
|
||||
.createAlertWindow (title, String(),
|
||||
cancelButtonText.isEmpty() ? TRANS("Cancel")
|
||||
: cancelButtonText,
|
||||
String(), String(),
|
||||
AlertWindow::NoIcon, hasCancelButton ? 1 : 0,
|
||||
componentToCentreAround);
|
||||
alertWindow.reset (LookAndFeel::getDefaultLookAndFeel()
|
||||
.createAlertWindow (title, {},
|
||||
cancelButtonText.isEmpty() ? TRANS("Cancel")
|
||||
: cancelButtonText,
|
||||
{}, {}, AlertWindow::NoIcon, hasCancelButton ? 1 : 0,
|
||||
componentToCentreAround));
|
||||
|
||||
// if there are no buttons, we won't allow the user to interrupt the thread.
|
||||
alertWindow->setEscapeKeyCancels (false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue