mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 884061 - Part 3l: Use NS_DECL_THREADSAFE_ISUPPORTS in intl/, r=smontagu
--HG-- extra : rebase_source : 8dcd2324d945f8f968690ec14d47d63935d35210
This commit is contained in:
parent
77f38b11be
commit
b5ca3d42b3
@ -16,7 +16,7 @@
|
||||
#include "nsTArray.h"
|
||||
|
||||
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(nsDateTimeFormatMac, nsIDateTimeFormat)
|
||||
NS_IMPL_ISUPPORTS1(nsDateTimeFormatMac, nsIDateTimeFormat)
|
||||
|
||||
nsresult nsDateTimeFormatMac::Initialize(nsILocale* locale)
|
||||
{
|
||||
|
@ -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,
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
|
||||
/* nsILocale */
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(nsLocale, nsILocale)
|
||||
NS_IMPL_ISUPPORTS1(nsLocale, nsILocale)
|
||||
|
||||
nsLocale::nsLocale(void)
|
||||
: fHashtable(nullptr), fCategoryCount(0)
|
||||
|
@ -27,7 +27,7 @@
|
||||
|
||||
class nsLocale : public nsILocale {
|
||||
friend class nsLocaleService;
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
|
||||
public:
|
||||
nsLocale(void);
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
@ -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,
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include "nsIPlatformCharset.h"
|
||||
#include "nsPlatformCharset.h"
|
||||
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(nsPlatformCharset, nsIPlatformCharset)
|
||||
NS_IMPL_ISUPPORTS1(nsPlatformCharset, nsIPlatformCharset)
|
||||
|
||||
nsPlatformCharset::nsPlatformCharset()
|
||||
{
|
||||
|
@ -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)
|
||||
|
@ -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,
|
||||
|
@ -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()
|
||||
{
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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()
|
||||
{
|
||||
|
@ -22,7 +22,7 @@ public:
|
||||
nsresult LoadProperties();
|
||||
virtual ~nsStringBundle();
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSISTRINGBUNDLE
|
||||
|
||||
nsCOMPtr<nsIPersistentProperties> mProps;
|
||||
|
@ -31,7 +31,7 @@ public:
|
||||
|
||||
nsresult Init();
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSISTRINGBUNDLESERVICE
|
||||
NS_DECL_NSIOBSERVER
|
||||
|
||||
|
@ -31,8 +31,7 @@ static nsIStringBundle * sTitleBundle;
|
||||
|
||||
// Class nsCharsetConverterManager [implementation]
|
||||
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(nsCharsetConverterManager,
|
||||
nsICharsetConverterManager)
|
||||
NS_IMPL_ISUPPORTS1(nsCharsetConverterManager, nsICharsetConverterManager)
|
||||
|
||||
nsCharsetConverterManager::nsCharsetConverterManager()
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ class nsCharsetConverterManager : public nsICharsetConverterManager
|
||||
{
|
||||
friend class nsCharsetAlias;
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSICHARSETCONVERTERMANAGER
|
||||
|
||||
public:
|
||||
|
@ -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
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
@ -69,7 +69,7 @@ class nsBasicDecoderSupport : public nsIUnicodeDecoder
|
||||
,public nsIBasicDecoder
|
||||
#endif
|
||||
{
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
|
||||
public:
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include "nsICaseConversion.h"
|
||||
|
||||
class nsCaseConversionImp2 : public nsICaseConversion {
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
|
||||
public:
|
||||
virtual ~nsCaseConversionImp2() { }
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include "nsIUGenCategory.h"
|
||||
|
||||
class nsCategoryImp : public nsIUGenCategory {
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
|
||||
public:
|
||||
static nsCategoryImp* GetInstance();
|
||||
|
Loading…
Reference in New Issue
Block a user