[vlmc-devel] Change const QString& projectPath to const QString& projectFilePath

Yikai Lu git at videolan.org
Mon Mar 14 21:31:34 CET 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sat Mar 12 15:30:51 2016 +0900| [e87b09ebe14ba2aba87e99f3301bac2deed1c18c] | committer: Hugo Beauzée-Luyssen

Change const QString& projectPath to const QString& projectFilePath

Now that we decided to save a project file inside its project folder, having both projectName and projectPath as parameters will be confusing

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 src/Project/Project.cpp | 4 ++--
 src/Project/Project.h   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Project/Project.cpp b/src/Project/Project.cpp
index 0401154..0fb7360 100644
--- a/src/Project/Project.cpp
+++ b/src/Project/Project.cpp
@@ -172,11 +172,11 @@ Project::saveAs( const QString& fileName )
 }
 
 void
-Project::newProject( const QString& projectName, const QString& projectPath )
+Project::newProject( const QString& projectName, const QString& projectFilePath )
 {
     closeProject();
     m_settings->setValue( "vlmc/ProjectName", projectName );
-    m_projectFile = new QFile( projectPath );
+    m_projectFile = new QFile( projectFilePath );
     save();
 }
 
diff --git a/src/Project/Project.h b/src/Project/Project.h
index 17062d3..508277f 100644
--- a/src/Project/Project.h
+++ b/src/Project/Project.h
@@ -56,7 +56,7 @@ class Project : public QObject
 
         void            save();
         void            saveAs(const QString& fileName);
-        void            newProject( const QString& projectName, const QString& projectPath );
+        void            newProject( const QString& projectName, const QString& projectFilePath );
         /**
          *  @brief          Check for a project backup file, and load the appropriate file,
          *                  according to the user input.



More information about the Vlmc-devel mailing list