gecko-dev/xpcom/tests
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
..
gtest Bug 1344629 - Part 6: Rewrite unnecessary uses of nsLiteralString. r=dbaron 2017-03-14 15:26:27 +13:00
unit Bug 792209 - Remove nsISupportsArray. r=froydnj 2016-11-17 11:45:41 -08:00
windows Bug 1332631 part A - remove two files which aren't referenced or used, r=froydnj 2017-01-20 10:48:53 -05:00
Makefile.in Bug 1333135 - Install test programs from xpcom/tests with moz.build rather than Makefile.in. r=mshal 2017-01-27 13:57:04 -08:00
NotXPCOMTest.idl
RegFactory.cpp
SizeTest01.cpp
SizeTest02.cpp
SizeTest03.cpp
SizeTest04.cpp
SizeTest05.cpp
SizeTest06.cpp
TestArguments.cpp Bug 1317954 - Replace string literals containing escaped characters with raw string literals in xpcom/. r=froydnj 2016-11-16 14:26:03 +02:00
TestBlockingProcess.cpp Bug 1317638 - Fix build fail in TestBlockingProcess.cpp if enabling warnings as errors. r=erahm 2016-11-15 16:33:59 +08:00
TestHarness.h Bug 1309462 - Replace MOZ_ASSERT with MOZ_RELEASE_ASSERT in xpcom/tests/. r=froydnj 2016-10-12 19:40:45 -07:00
TestPRIntN.cpp
TestQuickReturn.cpp
TestShutdown.cpp
TestStackCrawl.cpp
TestStreamUtils.cpp
TestUnicodeArguments.cpp
TestWinReg.js
TestingAtomList.h
moz.build Bug 1333135 - Install test programs from xpcom/tests with moz.build rather than Makefile.in. r=mshal 2017-01-27 13:57:04 -08:00
resources.h
test.properties