Ticket #7173: programs_mythbackend_scheduler.cpp-hidden-parameter

File programs_mythbackend_scheduler.cpp-hidden-parameter, 2.1 KB (added by Erik Hovland <erik@…>, 14 years ago)

Unhide pginfo

Line 
1Declaring a variable that is the same as the function parameter name hides the
2
3From: Erik Hovland <erik@hovland.org>
4
5function parameter.
6---
7
8 mythtv/programs/mythbackend/scheduler.cpp |   12 ++++++------
9 1 files changed, 6 insertions(+), 6 deletions(-)
10
11
12diff --git a/mythtv/programs/mythbackend/scheduler.cpp b/mythtv/programs/mythbackend/scheduler.cpp
13index c03d004..62207a7 100644
14--- a/mythtv/programs/mythbackend/scheduler.cpp
15+++ b/mythtv/programs/mythbackend/scheduler.cpp
16@@ -4041,27 +4041,27 @@ int Scheduler::FillRecordingDir(RecordingInfo *pginfo, RecList& reclist)
17                     else // recording is remote
18                     {
19                         QString backuppath = (*it)->pathname;
20-                        ProgramInfo *pginfo = *it;
21+                        ProgramInfo *programinfo = *it;
22                         bool foundSlave = false;
23 
24                         QMap<int, EncoderLink *>::Iterator enciter =
25                             m_tvList->begin();
26                         for (; enciter != m_tvList->end(); ++enciter)
27                         {
28-                            if ((*enciter)->GetHostName() == pginfo->hostname)
29+                            if ((*enciter)->GetHostName() == programinfo->hostname)
30                             {
31-                                (*enciter)->CheckFile(pginfo);
32+                                (*enciter)->CheckFile(programinfo);
33                                 foundSlave = true;
34                                 break;
35                             }
36                         }
37-                        if (foundSlave && pginfo->pathname == filename)
38+                        if (foundSlave && programinfo->pathname == filename)
39                         {
40                             fs = *fslistit;
41-                            pginfo->pathname = backuppath;
42+                            programinfo->pathname = backuppath;
43                             break;
44                         }
45-                        pginfo->pathname = backuppath;
46+                        programinfo->pathname = backuppath;
47                     }
48                 }   
49