gecko-dev/uriloader/exthandler/unix
Henri Sivonen 3a8d018880 Bug 1487398 - Remove useless use of SetCapacity(). r=froydnj,nwgh
Remove various calls to SetCapacity() that fall into various misuse categories:

 1) Mistakenly believing that the caller should advice the string about zero
    terminator.
 2) Cases where a single append does the right computation on its own.
 3) Calling SetCapacity() with a constant when the string is self-allocated
    and could be an nsAuto[C]StringN and the string doesn't get passed on
    in a way that could benefit from a heap-allocated buffer.
 4) Calling SetCapacity() before assigning a shared buffer to the string.
 5) Calling SetCapacity() before calling a function that will either calls
    SetLength() anyway or calls Adopt().

MozReview-Commit-ID: IKjfl5gLmcD

Differential Revision: https://phabricator.services.mozilla.com/D4672

--HG--
extra : moz-landing-system : lando
2018-09-25 15:36:31 +00:00
..
nsGNOMERegistry.cpp Bug 1411579 - add system handler when Firefox runs in flatpak; r=stransky 2018-01-12 16:32:53 +01:00
nsGNOMERegistry.h
nsMIMEInfoUnix.cpp Bug 1411579 - add system handler when Firefox runs in flatpak; r=stransky 2018-01-12 16:32:53 +01:00
nsMIMEInfoUnix.h Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj 2017-11-05 19:37:28 -08:00
nsOSHelperAppService.cpp Bug 1487398 - Remove useless use of SetCapacity(). r=froydnj,nwgh 2018-09-25 15:36:31 +00:00
nsOSHelperAppService.h Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj 2017-11-05 19:37:28 -08:00