Skip to content

Commit 71e8b1a

Browse files
committed
Bug 695795 - Drop the reference argument in ProcessUpdates because it's not really needed; r=bbondy
DONTBUILD
1 parent 3a1af19 commit 71e8b1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

toolkit/xre/nsUpdateDriver.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ GetChannelChangeFile(nsIFile *dir, nsCOMPtr<nsILocalFile> &result)
238238
// Compares the current application version with the update's application
239239
// version.
240240
static bool
241-
IsOlderVersion(nsILocalFile *versionFile, const char *&appVersion)
241+
IsOlderVersion(nsILocalFile *versionFile, const char *appVersion)
242242
{
243243
PRFileDesc *fd = nsnull;
244244
nsresult rv = versionFile->OpenNSPRFileDesc(PR_RDONLY, 0660, &fd);
@@ -498,7 +498,7 @@ ApplyUpdate(nsIFile *greDir, nsIFile *updateDir, nsILocalFile *statusFile,
498498

499499
nsresult
500500
ProcessUpdates(nsIFile *greDir, nsIFile *appDir, nsIFile *updRootDir,
501-
int argc, char **argv, const char *&appVersion)
501+
int argc, char **argv, const char *appVersion)
502502
{
503503
nsresult rv;
504504

toolkit/xre/nsUpdateDriver.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ class nsIFile;
6565
NS_HIDDEN_(nsresult) ProcessUpdates(nsIFile *greDir, nsIFile *appDir,
6666
nsIFile *updRootDir,
6767
int argc, char **argv,
68-
const char *&appVersion);
68+
const char *appVersion);
6969

7070
#endif // nsUpdateDriver_h__

0 commit comments

Comments
 (0)