Closed Bug 339023 Opened 19 years ago Closed 19 years ago

Static strings in widget/windows

Categories

(Core :: Widget: Win32, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: benjamin, Assigned: benjamin)

References

Details

Attachments

(1 file)

Static strings are bad, because ordering versus nsObsoleteAString::sCanonicalVTable is random in libxul.
Attachment #223099 - Flags: review?(roc)
Comment on attachment 223099 [details] [diff] [review] Use static PRUnichar* instead, rev. 1 + if(!newDir.IsEmpty()) { + if (mLastUsedUnicodeDirectory) { + NS_Free(mLastUsedUnicodeDirectory); + + mLastUsedUnicodeDirectory = ToNewUnicode(newDir); + } + } You want to move the assignment out of the innermost if, of course. r+sr with that.
Attachment #223099 - Flags: superreview+
Attachment #223099 - Flags: review?(roc)
Attachment #223099 - Flags: review+
Im working on IStream implementation for file drags now (bug # 2267426), so when I finish it statics will be gone.
Fixed on trunk
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: