Bug 1093934 - Create a XPCOM library that can be used to support standalone WebRTC. r=nfroyd
This commit is contained in:
@@ -18,9 +18,7 @@ nsTSubstring_CharT::nsTSubstring_CharT(char_type* aData, size_type aLength,
|
||||
{
|
||||
if (aFlags & F_OWNED) {
|
||||
STRING_STAT_INCREMENT(Adopt);
|
||||
#ifdef NS_BUILD_REFCNT_LOGGING
|
||||
NS_LogCtor(mData, "StringAdopt", 1);
|
||||
#endif
|
||||
MOZ_LOG_CTOR(mData, "StringAdopt", 1);
|
||||
}
|
||||
}
|
||||
#endif /* XPCOM_STRING_CONSTRUCTOR_OUT_OF_LINE */
|
||||
@@ -460,11 +458,9 @@ nsTSubstring_CharT::Adopt(char_type* aData, size_type aLength)
|
||||
SetDataFlags(F_TERMINATED | F_OWNED);
|
||||
|
||||
STRING_STAT_INCREMENT(Adopt);
|
||||
#ifdef NS_BUILD_REFCNT_LOGGING
|
||||
// Treat this as construction of a "StringAdopt" object for leak
|
||||
// tracking purposes.
|
||||
NS_LogCtor(mData, "StringAdopt", 1);
|
||||
#endif // NS_BUILD_REFCNT_LOGGING
|
||||
MOZ_LOG_CTOR(mData, "StringAdopt", 1);
|
||||
} else {
|
||||
SetIsVoid(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user