Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink
This removes the double-include macro hackery that we use to define two separate string types (nsAString and nsACString) in favor of a templated solution. Annotations for Valgrind and the JS hazard analysis are updated as well as the rust binding generations for string code.
This commit is contained in:
@@ -352,14 +352,7 @@ nsStringBuffer::SizeOfIncludingThisEvenIfShared(mozilla::MallocSizeOf aMallocSiz
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
// define nsAString
|
||||
#include "string-template-def-unichar.h"
|
||||
#include "nsTSubstring.cpp"
|
||||
#include "string-template-undef.h"
|
||||
|
||||
// define nsACString
|
||||
#include "string-template-def-char.h"
|
||||
#include "nsTSubstring.cpp"
|
||||
#include "string-template-undef.h"
|
||||
|
||||
// Provide rust bindings to the nsA[C]String types
|
||||
extern "C" {
|
||||
|
||||
Reference in New Issue
Block a user