Closed Bug 9117 Opened 26 years ago Closed 26 years ago

[patch] xpinstall build fix for HP-UX

Categories

(Core Graveyard :: Installer: XPInstall Engine, defect, P3)

HP
HP-UX
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: tor, Assigned: dveditz)

Details

The HP compiler doesn't like creating a reference to a temporary: "../../../xpinstall/src/nsInstallUninstall.cpp", line 185.52: 1540-224: (S) Conversion from "nsFileSpec" to a reference to a non-const type "nsFileSpec&" requires a temporary. "../../../xpinstall/src/nsInstallUninstall.cpp", line 192.48: 1540-224: (S) Conversion from "nsFileSpec" to a reference to a non-const type "nsFileSpec&" requires a temporary. This small patch should take care of these problems diff -u -r1.3 nsInstallUninstall.cpp --- nsInstallUninstall.cpp 1999/05/27 21:02:52 1.3 +++ nsInstallUninstall.cpp 1999/07/01 04:46:10 @@ -182,14 +182,16 @@ else { err = VR_Remove(component_path); - DeleteFileNowOrSchedule(nsFileSpec(filepath)); + nsFileSpec fpath(filepath); + DeleteFileNowOrSchedule(fpath); } } else { /* delete node and file */ err = VR_Remove(component_path); - DeleteFileNowOrSchedule(nsFileSpec(filepath)); + nsFileSpec fpath(filepath); + DeleteFileNowOrSchedule(fpath); } } return err;
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Thanks very much. I went ahead and made the parameters const instead (got a patch for AIX having the same problem) but should solve your problem nonetheless.
Status: RESOLVED → VERIFIED
Build 7/13/99 Marking verified. If new or similar problem is found, a new bug report will be opened.
Bulk move of XPInstall (component to be deleted) bugs to Installer: XPInstall Engine
Keywords: patch
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.