소스 검색

QList<T> QSet<T>::toList() const [with T = const FSNode*]’ is deprecated: Use values() instead

Donald Carr 5 년 전
부모
커밋
757112b563
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/picturemodel.cpp

+ 1 - 1
src/picturemodel.cpp

@@ -141,7 +141,7 @@ FSNodeTree::~FSNodeTree()
             node = node->parent;
         }
     }
-    qDeleteAll(nodes.toList());
+    qDeleteAll(nodes.values());
 }
 
 void FSNodeTree::addModelNode(const FSNode* parentNode)