David Major
dc67bfc9a3
Bug 1344629 - Part 6: Rewrite unnecessary uses of nsLiteralString. r=dbaron
...
There's an antipattern where nsLiteralString is used as an unnecessary intermediary in converting from CharT* to CharT*,
e.g. CallAFunctionThatTakesACharPointer(NS_LITERAL_CSTRING("foo").get());
or
NS_NAMED_LITERAL_STRING(foo, "abc");
CallAFunctionThatTakesACharPointer(foo.get());
This patch rewrites the callsites that can be trivially changed to use char*/char16_t*.
I'd somewhat like to remove nsTLiteralString::get() altogether, but in code that's less straightforward than these examples, get() is useful enough to keep.
MozReview-Commit-ID: Kh1rUziVllo
--HG--
extra : rebase_source : c21a65694d6e1c42fd88f73632f7ac8f38d005ae
2017-03-14 15:26:27 +13:00
..
2016-07-14 10:16:42 -06:00
2017-02-07 12:52:03 -08:00
2017-01-05 11:54:49 +00:00
2015-07-13 08:25:42 -07:00
2015-05-19 10:47:33 -07:00
2015-07-13 08:25:42 -07:00
2017-02-23 08:01:50 -05:00
2015-05-19 10:47:29 -07:00
2016-06-29 17:33:15 +02:00
2015-05-19 10:47:29 -07:00
2015-05-19 10:47:29 -07:00
2015-05-19 10:47:29 -07:00
2015-05-19 10:47:29 -07:00
2015-05-19 10:47:29 -07:00
2016-06-29 17:33:15 +02:00
2015-05-19 10:47:29 -07:00
2015-05-19 10:47:29 -07:00
2015-05-19 10:47:29 -07:00
2015-05-19 10:47:29 -07:00
2015-05-19 10:47:29 -07:00
2015-05-19 10:47:29 -07:00
2015-05-19 10:47:29 -07:00
2016-11-03 21:04:00 +01:00
2015-05-19 10:47:29 -07:00
2015-05-19 10:47:29 -07:00
2015-05-19 10:47:29 -07:00
2015-05-19 10:47:29 -07:00
2015-05-19 10:47:29 -07:00
2016-09-23 21:10:01 -04:00
2015-05-19 10:47:33 -07:00
2016-12-15 20:16:31 -07:00
2015-10-18 01:24:48 -04:00
2017-01-24 16:34:37 -08:00
2015-10-18 01:24:48 -04:00
2017-01-23 13:33:58 +11:00
2015-05-19 10:47:33 -07:00
2017-01-23 13:33:58 +11:00
2015-05-19 10:47:33 -07:00
2016-10-25 21:18:37 +02:00
2015-10-29 16:04:41 -07:00
2015-05-19 10:47:33 -07:00
2016-01-05 17:08:45 -08:00
2017-01-24 16:34:37 -08:00
2017-01-24 16:34:37 -08:00
2015-05-19 10:47:33 -07:00
2015-07-13 08:25:42 -07:00
2016-09-01 15:01:16 +10:00
2016-09-11 18:21:36 +09:00
2016-09-11 18:21:36 +09:00
2015-05-19 10:47:33 -07:00
2015-05-19 10:47:33 -07:00
2015-05-19 10:47:33 -07:00
2016-01-12 18:16:59 +00:00
2017-02-24 17:39:30 +01:00
2015-10-18 01:24:48 -04:00
2016-02-02 17:36:30 +02:00
2015-05-19 10:47:33 -07:00
2016-12-15 20:16:31 -07:00
2015-10-18 01:24:48 -04:00
2016-02-10 08:23:00 +01:00
2017-01-23 13:33:58 +11:00
2015-05-19 10:47:33 -07:00
2017-01-23 13:33:58 +11:00
2015-05-19 10:47:33 -07:00
2017-01-23 13:33:58 +11:00
2015-05-19 10:47:33 -07:00
2015-07-13 08:25:42 -07:00
2015-05-19 10:47:33 -07:00
2016-02-01 10:49:34 -05:00
2016-01-24 18:09:12 -08:00
2015-05-19 10:47:29 -07:00
2016-08-08 12:18:10 +10:00
2015-10-18 01:24:48 -04:00
2017-02-16 00:45:15 +05:30
2017-03-14 15:26:27 +13:00
2015-05-19 10:47:33 -07:00
2015-05-19 10:47:33 -07:00
2016-09-23 21:10:01 -04:00
2016-06-07 22:08:41 -07:00