Bug 884061 - Part 3l: Use NS_DECL_THREADSAFE_ISUPPORTS in intl/, r=smontagu

--HG--
extra : rebase_source : 8dcd2324d945f8f968690ec14d47d63935d35210
This commit is contained in:
Joshua Cranmer 2013-07-18 21:23:32 -05:00
parent 77f38b11be
commit b5ca3d42b3
24 changed files with 32 additions and 34 deletions

View File

@ -16,7 +16,7 @@
#include "nsTArray.h"
NS_IMPL_THREADSAFE_ISUPPORTS1(nsDateTimeFormatMac, nsIDateTimeFormat)
NS_IMPL_ISUPPORTS1(nsDateTimeFormatMac, nsIDateTimeFormat)
nsresult nsDateTimeFormatMac::Initialize(nsILocale* locale)
{

View File

@ -15,7 +15,7 @@
class nsDateTimeFormatMac : public nsIDateTimeFormat {
public:
NS_DECL_ISUPPORTS
NS_DECL_THREADSAFE_ISUPPORTS
// performs a locale sensitive date formatting operation on the time_t parameter
NS_IMETHOD FormatTime(nsILocale* locale,

View File

@ -18,7 +18,7 @@
/* nsILocale */
NS_IMPL_THREADSAFE_ISUPPORTS1(nsLocale, nsILocale)
NS_IMPL_ISUPPORTS1(nsLocale, nsILocale)
nsLocale::nsLocale(void)
: fHashtable(nullptr), fCategoryCount(0)

View File

@ -27,7 +27,7 @@
class nsLocale : public nsILocale {
friend class nsLocaleService;
NS_DECL_ISUPPORTS
NS_DECL_THREADSAFE_ISUPPORTS
public:
nsLocale(void);

View File

@ -77,7 +77,7 @@ public:
//
// nsISupports
//
NS_DECL_ISUPPORTS
NS_DECL_THREADSAFE_ISUPPORTS
//
// nsILocaleService
@ -251,7 +251,7 @@ nsLocaleService::~nsLocaleService(void)
{
}
NS_IMPL_THREADSAFE_ISUPPORTS1(nsLocaleService, nsILocaleService)
NS_IMPL_ISUPPORTS1(nsLocaleService, nsILocaleService)
NS_IMETHODIMP
nsLocaleService::NewLocale(const nsAString &aLocale, nsILocale **_retval)

View File

@ -5,7 +5,7 @@
#include <unidef.h>
#include "nsDateTimeFormatOS2.h"
NS_IMPL_THREADSAFE_ISUPPORTS1(nsDateTimeFormatOS2,nsIDateTimeFormat)
NS_IMPL_ISUPPORTS1(nsDateTimeFormatOS2,nsIDateTimeFormat)
#define NSDATETIME_FORMAT_BUFFER_LEN 80

View File

@ -9,7 +9,7 @@
class nsDateTimeFormatOS2 : public nsIDateTimeFormat {
public:
NS_DECL_ISUPPORTS
NS_DECL_THREADSAFE_ISUPPORTS
// performs a locale sensitive date formatting operation on the time_t parameter
NS_IMETHOD FormatTime(nsILocale* locale,

View File

@ -6,7 +6,7 @@
#include "nsIPlatformCharset.h"
#include "nsPlatformCharset.h"
NS_IMPL_THREADSAFE_ISUPPORTS1(nsPlatformCharset, nsIPlatformCharset)
NS_IMPL_ISUPPORTS1(nsPlatformCharset, nsIPlatformCharset)
nsPlatformCharset::nsPlatformCharset()
{

View File

@ -15,7 +15,7 @@
#include "nsReadableUtils.h"
#include "nsUnicharUtils.h"
NS_IMPL_THREADSAFE_ISUPPORTS1(nsDateTimeFormatUnix, nsIDateTimeFormat)
NS_IMPL_ISUPPORTS1(nsDateTimeFormatUnix, nsIDateTimeFormat)
// init this interface to a specified locale
nsresult nsDateTimeFormatUnix::Initialize(nsILocale* locale)

View File

@ -17,7 +17,7 @@
class nsDateTimeFormatUnix : public nsIDateTimeFormat {
public:
NS_DECL_ISUPPORTS
NS_DECL_THREADSAFE_ISUPPORTS
// performs a locale sensitive date formatting operation on the time_t parameter
NS_IMETHOD FormatTime(nsILocale* locale,

View File

@ -36,7 +36,7 @@ static const char* kUnixCharsets[][3] = {
#include "unixcharset.properties.h"
};
NS_IMPL_THREADSAFE_ISUPPORTS1(nsPlatformCharset, nsIPlatformCharset)
NS_IMPL_ISUPPORTS1(nsPlatformCharset, nsIPlatformCharset)
nsPlatformCharset::nsPlatformCharset()
{

View File

@ -16,7 +16,7 @@
#define NSDATETIMEFORMAT_BUFFER_LEN 80
NS_IMPL_THREADSAFE_ISUPPORTS1(nsDateTimeFormatWin, nsIDateTimeFormat)
NS_IMPL_ISUPPORTS1(nsDateTimeFormatWin, nsIDateTimeFormat)
// init this interface to a specified locale

View File

@ -17,7 +17,7 @@
class nsDateTimeFormatWin : public nsIDateTimeFormat {
public:
NS_DECL_ISUPPORTS
NS_DECL_THREADSAFE_ISUPPORTS
// performs a locale sensitive date formatting operation on the time_t parameter
NS_IMETHOD FormatTime(nsILocale* locale,

View File

@ -198,8 +198,7 @@ nsStringBundle::FormatStringFromName(const PRUnichar *aName,
}
NS_IMPL_THREADSAFE_ISUPPORTS1(nsStringBundle,
nsIStringBundle)
NS_IMPL_ISUPPORTS1(nsStringBundle, nsIStringBundle)
/* void GetStringFromID (in long aID, out wstring aResult); */
NS_IMETHODIMP
@ -522,10 +521,10 @@ nsStringBundleService::nsStringBundleService() :
}
NS_IMPL_THREADSAFE_ISUPPORTS3(nsStringBundleService,
nsIStringBundleService,
nsIObserver,
nsISupportsWeakReference)
NS_IMPL_ISUPPORTS3(nsStringBundleService,
nsIStringBundleService,
nsIObserver,
nsISupportsWeakReference)
nsStringBundleService::~nsStringBundleService()
{

View File

@ -22,7 +22,7 @@ public:
nsresult LoadProperties();
virtual ~nsStringBundle();
NS_DECL_ISUPPORTS
NS_DECL_THREADSAFE_ISUPPORTS
NS_DECL_NSISTRINGBUNDLE
nsCOMPtr<nsIPersistentProperties> mProps;

View File

@ -31,7 +31,7 @@ public:
nsresult Init();
NS_DECL_ISUPPORTS
NS_DECL_THREADSAFE_ISUPPORTS
NS_DECL_NSISTRINGBUNDLESERVICE
NS_DECL_NSIOBSERVER

View File

@ -31,8 +31,7 @@ static nsIStringBundle * sTitleBundle;
// Class nsCharsetConverterManager [implementation]
NS_IMPL_THREADSAFE_ISUPPORTS1(nsCharsetConverterManager,
nsICharsetConverterManager)
NS_IMPL_ISUPPORTS1(nsCharsetConverterManager, nsICharsetConverterManager)
nsCharsetConverterManager::nsCharsetConverterManager()
{

View File

@ -17,7 +17,7 @@ class nsCharsetConverterManager : public nsICharsetConverterManager
{
friend class nsCharsetAlias;
NS_DECL_ISUPPORTS
NS_DECL_THREADSAFE_ISUPPORTS
NS_DECL_NSICHARSETCONVERTERMANAGER
public:

View File

@ -30,11 +30,11 @@ nsBasicDecoderSupport::~nsBasicDecoderSupport()
// Interface nsISupports [implementation]
#ifdef DEBUG
NS_IMPL_THREADSAFE_ISUPPORTS2(nsBasicDecoderSupport,
nsIUnicodeDecoder,
nsIBasicDecoder)
NS_IMPL_ISUPPORTS2(nsBasicDecoderSupport,
nsIUnicodeDecoder,
nsIBasicDecoder)
#else
NS_IMPL_THREADSAFE_ISUPPORTS1(nsBasicDecoderSupport, nsIUnicodeDecoder)
NS_IMPL_ISUPPORTS1(nsBasicDecoderSupport, nsIUnicodeDecoder)
#endif
//----------------------------------------------------------------------

View File

@ -69,7 +69,7 @@ class nsBasicDecoderSupport : public nsIUnicodeDecoder
,public nsIBasicDecoder
#endif
{
NS_DECL_ISUPPORTS
NS_DECL_THREADSAFE_ISUPPORTS
public:

View File

@ -16,7 +16,7 @@ NS_IMETHODIMP_(nsrefcnt) nsCaseConversionImp2::Release(void)
return (nsrefcnt)1;
}
NS_IMPL_THREADSAFE_QUERY_INTERFACE1(nsCaseConversionImp2, nsICaseConversion)
NS_IMPL_QUERY_INTERFACE1(nsCaseConversionImp2, nsICaseConversion)
NS_IMETHODIMP nsCaseConversionImp2::ToUpper(PRUnichar aChar, PRUnichar* aReturn)
{

View File

@ -12,7 +12,7 @@
#include "nsICaseConversion.h"
class nsCaseConversionImp2 : public nsICaseConversion {
NS_DECL_ISUPPORTS
NS_DECL_THREADSAFE_ISUPPORTS
public:
virtual ~nsCaseConversionImp2() { }

View File

@ -10,7 +10,7 @@
static nsCategoryImp gCategoryImp;
NS_IMPL_THREADSAFE_QUERY_INTERFACE1(nsCategoryImp, nsIUGenCategory)
NS_IMPL_QUERY_INTERFACE1(nsCategoryImp, nsIUGenCategory)
NS_IMETHODIMP_(nsrefcnt) nsCategoryImp::AddRef(void)
{

View File

@ -8,7 +8,7 @@
#include "nsIUGenCategory.h"
class nsCategoryImp : public nsIUGenCategory {
NS_DECL_ISUPPORTS
NS_DECL_THREADSAFE_ISUPPORTS
public:
static nsCategoryImp* GetInstance();