1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-03 03:30:06 +00:00

Cleaned up a few static analyser warnings.

This commit is contained in:
jules 2013-03-15 19:36:28 +00:00
parent 7be8153f2d
commit ffd894089d
4 changed files with 15 additions and 8 deletions

View file

@ -242,10 +242,13 @@ bool MainWindow::shouldDropFilesWhenDraggedExternally (const DragAndDropTarget::
{
for (int i = selected.size(); --i >= 0;)
{
const File f (selected.getUnchecked(i)->getDraggableFile());
if (JucerTreeViewBase* tv = selected.getUnchecked(i))
{
const File f (tv->getDraggableFile());
if (f.existsAsFile())
files.add (f.getFullPathName());
if (f.existsAsFile())
files.add (f.getFullPathName());
}
}
canMoveFiles = false;