mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-21 01:24:21 +00:00
Fixed some warnings flagged by Clang's static analyzer
This commit is contained in:
parent
d3556dfd7f
commit
a2d03d2266
9 changed files with 52 additions and 12 deletions
|
|
@ -402,7 +402,7 @@ private:
|
|||
return;
|
||||
}
|
||||
|
||||
auto afterAsking = [doSave = std::move (doSave),
|
||||
auto afterAsking = [doSave = std::forward<DoSave> (doSave),
|
||||
completed = std::move (completed)] (SafeParentPointer ptr,
|
||||
int alertResult)
|
||||
{
|
||||
|
|
@ -562,7 +562,7 @@ private:
|
|||
newFile,
|
||||
showMessageOnFailure,
|
||||
showWaitCursor,
|
||||
doSaveDocument = std::move (doSaveDocument)]
|
||||
doSaveDocument = std::forward<DoSaveDocument> (doSaveDocument)]
|
||||
{
|
||||
if (! parent.shouldExitAsyncCallback())
|
||||
parent->saveInternal (parent,
|
||||
|
|
@ -723,8 +723,8 @@ private:
|
|||
{
|
||||
doSelectFilename (parent,
|
||||
warnAboutOverwritingExistingFiles,
|
||||
[doSaveAs = std::move (doSaveAs),
|
||||
doAskToOverwriteFile = std::move (doAskToOverwriteFile),
|
||||
[doSaveAs = std::forward<DoSaveAs> (doSaveAs),
|
||||
doAskToOverwriteFile = std::forward<DoAskToOverwriteFile> (doAskToOverwriteFile),
|
||||
callback = std::move (callback)] (SafeParentPointer ptr, File chosen)
|
||||
{
|
||||
if (ptr.shouldExitAsyncCallback())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue