diff --git a/mozilla/string/obsolete/nsStr.h b/mozilla/string/obsolete/nsStr.h index ac78e143bf8..8f6776bbb83 100644 --- a/mozilla/string/obsolete/nsStr.h +++ b/mozilla/string/obsolete/nsStr.h @@ -200,6 +200,16 @@ public: struct NS_COM nsStr { +//---------------------------------------------------------------------------------------- + + nsStr() { + MOZ_COUNT_CTOR(nsStr); + } + + ~nsStr() { + MOZ_COUNT_DTOR(nsStr); + } + /** * This method initializes an nsStr for use * diff --git a/mozilla/xpcom/ds/nsStr.h b/mozilla/xpcom/ds/nsStr.h index ac78e143bf8..8f6776bbb83 100644 --- a/mozilla/xpcom/ds/nsStr.h +++ b/mozilla/xpcom/ds/nsStr.h @@ -200,6 +200,16 @@ public: struct NS_COM nsStr { +//---------------------------------------------------------------------------------------- + + nsStr() { + MOZ_COUNT_CTOR(nsStr); + } + + ~nsStr() { + MOZ_COUNT_DTOR(nsStr); + } + /** * This method initializes an nsStr for use * diff --git a/mozilla/xpcom/string/obsolete/nsStr.h b/mozilla/xpcom/string/obsolete/nsStr.h index ac78e143bf8..8f6776bbb83 100644 --- a/mozilla/xpcom/string/obsolete/nsStr.h +++ b/mozilla/xpcom/string/obsolete/nsStr.h @@ -200,6 +200,16 @@ public: struct NS_COM nsStr { +//---------------------------------------------------------------------------------------- + + nsStr() { + MOZ_COUNT_CTOR(nsStr); + } + + ~nsStr() { + MOZ_COUNT_DTOR(nsStr); + } + /** * This method initializes an nsStr for use *