From 312c2ed8c42f9d56f83be271cfdec7c41d7ff754 Mon Sep 17 00:00:00 2001 From: "mark%moxienet.com" Date: Sat, 18 Feb 2006 21:09:59 +0000 Subject: [PATCH] 323657 Fixing XULRunner bustage by moving nsMacUtils class to nsMacUtilsImpl. r=dbaron sr=dbaron git-svn-id: svn://10.0.0.236/trunk@190526 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/base/Makefile.in | 2 +- .../{nsMacUtils.cpp => nsMacUtilsImpl.cpp} | 6 +++--- .../base/{nsMacUtils.h => nsMacUtilsImpl.h} | 18 +++++++++--------- mozilla/xpcom/build/nsXPComInit.cpp | 6 +++--- 4 files changed, 16 insertions(+), 16 deletions(-) rename mozilla/xpcom/base/{nsMacUtils.cpp => nsMacUtilsImpl.cpp} (96%) rename mozilla/xpcom/base/{nsMacUtils.h => nsMacUtilsImpl.h} (86%) diff --git a/mozilla/xpcom/base/Makefile.in b/mozilla/xpcom/base/Makefile.in index 37abd11bcce..75cb359614f 100644 --- a/mozilla/xpcom/base/Makefile.in +++ b/mozilla/xpcom/base/Makefile.in @@ -72,7 +72,7 @@ REQUIRES += boehm endif ifeq ($(OS_ARCH),Darwin) -CPPSRCS += nsMacUtils.cpp +CPPSRCS += nsMacUtilsImpl.cpp endif EXPORTS = \ diff --git a/mozilla/xpcom/base/nsMacUtils.cpp b/mozilla/xpcom/base/nsMacUtilsImpl.cpp similarity index 96% rename from mozilla/xpcom/base/nsMacUtils.cpp rename to mozilla/xpcom/base/nsMacUtilsImpl.cpp index f2049b4be0d..0a6c0f00aee 100644 --- a/mozilla/xpcom/base/nsMacUtils.cpp +++ b/mozilla/xpcom/base/nsMacUtilsImpl.cpp @@ -35,19 +35,19 @@ * * ***** END LICENSE BLOCK ***** */ -#include "nsMacUtils.h" +#include "nsMacUtilsImpl.h" #include #include #include #include -NS_IMPL_ISUPPORTS1(nsMacUtils, nsIMacUtils) +NS_IMPL_ISUPPORTS1(nsMacUtilsImpl, nsIMacUtils) /* readonly attribute boolean isUniversalBinary; */ // True when the main executable is a fat file supporting at least // ppc and x86 (universal binary). -NS_IMETHODIMP nsMacUtils::GetIsUniversalBinary(PRBool *aIsUniversalBinary) +NS_IMETHODIMP nsMacUtilsImpl::GetIsUniversalBinary(PRBool *aIsUniversalBinary) { static PRBool sInitialized = PR_FALSE, sIsUniversalBinary = PR_FALSE; diff --git a/mozilla/xpcom/base/nsMacUtils.h b/mozilla/xpcom/base/nsMacUtilsImpl.h similarity index 86% rename from mozilla/xpcom/base/nsMacUtils.h rename to mozilla/xpcom/base/nsMacUtilsImpl.h index 050e2a8f3ae..79b5cfb03b7 100644 --- a/mozilla/xpcom/base/nsMacUtils.h +++ b/mozilla/xpcom/base/nsMacUtilsImpl.h @@ -35,28 +35,28 @@ * * ***** END LICENSE BLOCK ***** */ -#ifndef nsMacUtils_h___ -#define nsMacUtils_h___ +#ifndef nsMacUtilsImpl_h___ +#define nsMacUtilsImpl_h___ #include "nsIMacUtils.h" -class nsMacUtils : public nsIMacUtils +class nsMacUtilsImpl : public nsIMacUtils { public: NS_DECL_ISUPPORTS NS_DECL_NSIMACUTILS - nsMacUtils() {} + nsMacUtilsImpl() {} private: - ~nsMacUtils() {} + ~nsMacUtilsImpl() {} }; // Global singleton service // 697BD3FD-43E5-41CE-AD5E-C339175C0818 -#define NS_MACUTILS_CLASSNAME "Mac OS X Utilities" -#define NS_MACUTILS_CID \ +#define NS_MACUTILSIMPL_CLASSNAME "Mac OS X Utilities" +#define NS_MACUTILSIMPL_CID \ {0x697BD3FD, 0x43E5, 0x41CE, {0xAD, 0x5E, 0xC3, 0x39, 0x17, 0x5C, 0x08, 0x18}} -#define NS_MACUTILS_CONTRACTID "@mozilla.org/xpcom/mac-utils;1" +#define NS_MACUTILSIMPL_CONTRACTID "@mozilla.org/xpcom/mac-utils;1" -#endif /* nsMacUtils_h___ */ +#endif /* nsMacUtilsImpl_h___ */ diff --git a/mozilla/xpcom/build/nsXPComInit.cpp b/mozilla/xpcom/build/nsXPComInit.cpp index f6ff26c3e6e..95adee42bfd 100644 --- a/mozilla/xpcom/build/nsXPComInit.cpp +++ b/mozilla/xpcom/build/nsXPComInit.cpp @@ -131,7 +131,7 @@ NS_DECL_CLASSINFO(nsStringInputStream) #endif #ifdef XP_MACOSX -#include "nsMacUtils.h" +#include "nsMacUtilsImpl.h" #endif #include @@ -222,7 +222,7 @@ NS_GENERIC_AGGREGATED_CONSTRUCTOR_INIT(nsProperties, Init) NS_GENERIC_FACTORY_CONSTRUCTOR(nsUUIDGenerator) #ifdef XP_MACOSX -NS_GENERIC_FACTORY_CONSTRUCTOR(nsMacUtils) +NS_GENERIC_FACTORY_CONSTRUCTOR(nsMacUtilsImpl) #endif static NS_METHOD @@ -419,7 +419,7 @@ static const nsModuleComponentInfo components[] = { #endif #ifdef XP_MACOSX - COMPONENT(MACUTILS, nsMacUtilsConstructor), + COMPONENT(MACUTILSIMPL, nsMacUtilsImplConstructor), #endif };