AIX requires a 'const' in order to handle the assignment of 2 nsStrings

(see wallet.cpp line 3093).

rickg approved


git-svn-id: svn://10.0.0.236/trunk@53315 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jdunn%netscape.com
1999-11-12 03:58:15 +00:00
parent b1b38d3c68
commit 20bee13047
6 changed files with 39 additions and 0 deletions

View File

@@ -113,9 +113,18 @@ nsString::nsString(const nsString& aString) {
* @update gess 1/4/99
* @param reference to a subsumeString
*/
#ifdef AIX
nsString::nsString(const nsSubsumeStr& aSubsumeStr) {
nsStr::Initialize(*this,eTwoByte);
nsSubsumeStr temp(aSubsumeStr); // a temp is needed for the AIX compiler
Subsume(*this,temp);
#else
nsString::nsString(nsSubsumeStr& aSubsumeStr) {
nsStr::Initialize(*this,eTwoByte);
Subsume(*this,aSubsumeStr);
#endif /* AIX */
}
/**