mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
408d24da56
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 |
||
---|---|---|
.. | ||
crashtests | ||
moz.build | ||
nsASCIIMask.cpp | ||
nsASCIIMask.h | ||
nsAString.h | ||
nsCharTraits.h | ||
nsDependentString.cpp | ||
nsDependentString.h | ||
nsDependentSubstring.cpp | ||
nsDependentSubstring.h | ||
nsLiteralString.h | ||
nsPrintfCString.h | ||
nsPromiseFlatString.cpp | ||
nsPromiseFlatString.h | ||
nsReadableUtils.cpp | ||
nsReadableUtils.h | ||
nsReadableUtilsImpl.h | ||
nsReadableUtilsSSE2.cpp | ||
nsString.cpp | ||
nsString.h | ||
nsStringBuffer.h | ||
nsStringComparator.cpp | ||
nsStringFwd.h | ||
nsStringIterator.h | ||
nsStringObsolete.cpp | ||
nsSubstring.cpp | ||
nsSubstring.h | ||
nsSubstringTuple.cpp | ||
nsSubstringTuple.h | ||
nsTDependentString.cpp | ||
nsTDependentString.h | ||
nsTDependentSubstring.cpp | ||
nsTDependentSubstring.h | ||
nsTextFormatter.cpp | ||
nsTextFormatter.h | ||
nsTLiteralString.h | ||
nsTPromiseFlatString.cpp | ||
nsTPromiseFlatString.h | ||
nsTString.cpp | ||
nsTString.h | ||
nsTStringComparator.cpp | ||
nsTStringObsolete.cpp | ||
nsTSubstring.cpp | ||
nsTSubstring.h | ||
nsTSubstringTuple.cpp | ||
nsTSubstringTuple.h | ||
nsUTF8Utils.h | ||
nsUTF8UtilsSSE2.cpp | ||
nsXPIDLString.h | ||
README.html | ||
string-template-def-char.h | ||
string-template-def-unichar.h | ||
string-template-undef.h |
<html> <!-- This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> <body> <h1><span class="LXRSHORTDESC">managing sequences of characters</span></h1> <p> <span class="LXRLONGDESC"></span> </p> </body> </html>