gecko-dev/xpcom/tests
Julian Seward 408d24da56 Bug 1382563 - Remove ns*String::AssignWithConversion. r=erahm.
This patch replaces four functions of the name AssignWithConversion which
are essentially wrappers around CopyASCIItoUTF16 and LossyCopyUTF16toASCII
with direct calls to the latter two functions.  The replaced functions are:

  void nsCString::AssignWithConversion( const nsAString& aData )
  void nsString::AssignWithConversion( const nsACString& aData )

  void nsTString_CharT::AssignWithConversion(
                            const incompatible_char_type* aData,
                            int32_t aLength = -1);

The last of the three exists inside the double-included nsTString* world and
so describes two functions, giving four in total.

This has two advantages:

* it removes code

* at the call points, it makes clear (from the replacement name) which
  conversion is being carried out.  The generic name "AssignWithConversion"
  doesn't make that obvious -- one had to infer it from the types.

The patch also removes two commented out lines from
editor/composer/nsComposerCommands.cpp, that appear to be related.  They are
at top level, where they would never have compiled.  They look like
leftovers from some previous change.

--HG--
extra : rebase_source : fb47bf450771c3c9ee3341dd14520f5da69ec4f5
2017-07-24 19:23:52 +02:00
..
gtest Bug 1382563 - Remove ns*String::AssignWithConversion. r=erahm. 2017-07-24 19:23:52 +02:00
unit Bug 1383215: Follow-up: Fix straggler xpcshell test. 2017-07-24 22:10:18 -07:00
windows Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02: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 Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
SizeTest01.cpp
SizeTest02.cpp Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
SizeTest03.cpp Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
SizeTest04.cpp
SizeTest05.cpp
SizeTest06.cpp Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
TestArguments.cpp Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
TestBlockingProcess.cpp
TestHarness.h Bug 1362215 - use MOZ_FORMAT_PRINTF in TestHarness.h; r=froydnj 2017-05-05 14:23:00 -06:00
TestPRIntN.cpp
TestQuickReturn.cpp
TestShutdown.cpp
TestStackCrawl.cpp
TestStreamUtils.cpp Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
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