Closed Bug 1543582 Opened 6 years ago Closed 6 years ago

tweak MOZ_DBG and operator<< for XPCOM strings

Categories

(Core :: XPCOM, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: heycam, Assigned: heycam)

References

Details

Attachments

(1 file)

operator<< for XPCOM strings includes quotes around the string contents, but it would be nicer if it was only when calling MOZ_DBG that you get the quotes.

I was not able to find a way to rely just on function overloading to have one DebugValue implementation for strings and another for all other objects. Hence the enable_if fluff, which gives me more precise control about which functions are available when.

Blocks: 1543304
Assignee: nobody → cam
Status: NEW → ASSIGNED
Type: defect → enhancement
Pushed by cmccormack@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/581a359135ad Only include quotes around XPCOM strings in MOZ_DBG, not operator<<. r=froydnj
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: