aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/CommandLineOptions/PlayListOption
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-08-12 12:00:24 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-08-12 12:00:24 +0000
commit6f301f5880f7efce76ed46e7b502830642b87370 (patch)
tree6e385165d05a0637334bea6e639b21a3c9a696dd /src/plugins/CommandLineOptions/PlayListOption
parent9ed06405eb90a646e831755939d0b9e3a4d2921d (diff)
downloadqmmp-6f301f5880f7efce76ed46e7b502830642b87370.tar.gz
qmmp-6f301f5880f7efce76ed46e7b502830642b87370.tar.bz2
qmmp-6f301f5880f7efce76ed46e7b502830642b87370.zip
coding style fixes
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9469 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/CommandLineOptions/PlayListOption')
-rw-r--r--src/plugins/CommandLineOptions/PlayListOption/playlistoption.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/CommandLineOptions/PlayListOption/playlistoption.cpp b/src/plugins/CommandLineOptions/PlayListOption/playlistoption.cpp
index 2dc537284..de9120e43 100644
--- a/src/plugins/CommandLineOptions/PlayListOption/playlistoption.cpp
+++ b/src/plugins/CommandLineOptions/PlayListOption/playlistoption.cpp
@@ -104,8 +104,8 @@ QString PlayListOption::executeCommand(int id, const QStringList &args)
case PL_DUMP:
{
MetaDataFormatter formatter("%p%if(%p&%t, - ,)%t%if(%p,,%if(%t,,%f))%if(%l, - %l,)");
- int id = args.isEmpty() ? pl_manager->currentPlayListIndex() : args.at(0).toInt() - 1;
- PlayListModel *model = pl_manager->playListAt(id);
+ int pl_id = args.isEmpty() ? pl_manager->currentPlayListIndex() : args.at(0).toInt() - 1;
+ PlayListModel *model = pl_manager->playListAt(pl_id);
if(!model)
return tr("Invalid playlist ID") + "\n";
for(int i = 0; i < model->count(); ++i)
@@ -165,8 +165,8 @@ QString PlayListOption::executeCommand(int id, const QStringList &args)
break;
case PL_CLEAR:
{
- int id = args.isEmpty() ? pl_manager->currentPlayListIndex() : args.at(0).toInt() - 1;
- PlayListModel *model = pl_manager->playListAt(id);
+ int pl_id= args.isEmpty() ? pl_manager->currentPlayListIndex() : args.at(0).toInt() - 1;
+ PlayListModel *model = pl_manager->playListAt(pl_id);
if(!model)
return tr("Invalid playlist ID") + "\n";
model->clear();