[vlmc-devel] WorkspaceWorker: Remove useless QFile instance

Hugo Beauzée-Luyssen git at videolan.org
Thu Aug 18 22:57:03 CEST 2016


vlmc | branch: medialibrary | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Aug 18 17:07:48 2016 +0200| [ffb8c0619ef7bfa6b806c76898d3fa7f2f450ec3] | committer: Hugo Beauzée-Luyssen

WorkspaceWorker: Remove useless QFile instance

Since we're using the static QFile::copy method

> https://code.videolan.org/videolan/vlmc/commit/ffb8c0619ef7bfa6b806c76898d3fa7f2f450ec3
---

 src/Project/WorkspaceWorker.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/Project/WorkspaceWorker.cpp b/src/Project/WorkspaceWorker.cpp
index a05d440..893cb4f 100644
--- a/src/Project/WorkspaceWorker.cpp
+++ b/src/Project/WorkspaceWorker.cpp
@@ -65,9 +65,7 @@ WorkspaceWorker::run()
 
     if ( hardLinkOk == false )
     {
-        QFile           file( m_media->fileInfo()->absoluteFilePath() );
-
-        file.copy( m_media->fileInfo()->absoluteFilePath(), m_dest );
+        QFile::copy( m_media->fileInfo()->absoluteFilePath(), m_dest );
         vlmcDebug() << "Media copied to:" << m_dest;
     }
     emit copied( m_media, m_dest );



More information about the Vlmc-devel mailing list