diff --git a/intl/strres/src/moz.build b/intl/strres/src/moz.build index af29595bb86c..4ef57439e3e7 100644 --- a/intl/strres/src/moz.build +++ b/intl/strres/src/moz.build @@ -4,7 +4,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -SOURCES += [ +UNIFIED_SOURCES += [ 'nsStringBundle.cpp', 'nsStringBundleTextOverride.cpp', ] diff --git a/intl/strres/src/nsStringBundle.cpp b/intl/strres/src/nsStringBundle.cpp index 23f9cd05b017..ee29c01fc437 100644 --- a/intl/strres/src/nsStringBundle.cpp +++ b/intl/strres/src/nsStringBundle.cpp @@ -31,7 +31,6 @@ using namespace mozilla; static NS_DEFINE_CID(kErrorServiceCID, NS_ERRORSERVICE_CID); -static NS_DEFINE_CID(kPersistentPropertiesCID, NS_IPERSISTENTPROPERTIES_CID); nsStringBundle::~nsStringBundle() { @@ -84,7 +83,8 @@ nsStringBundle::LoadProperties() NS_ASSERTION(NS_SUCCEEDED(rv) && in, "Error in OpenBlockingStream"); NS_ENSURE_TRUE(NS_SUCCEEDED(rv) && in, NS_ERROR_FAILURE); - + + static NS_DEFINE_CID(kPersistentPropertiesCID, NS_IPERSISTENTPROPERTIES_CID); mProps = do_CreateInstance(kPersistentPropertiesCID, &rv); NS_ENSURE_SUCCESS(rv, rv); diff --git a/intl/strres/src/nsStringBundleTextOverride.cpp b/intl/strres/src/nsStringBundleTextOverride.cpp index 5c64d4dcabb1..e14d32f4cf3d 100644 --- a/intl/strres/src/nsStringBundleTextOverride.cpp +++ b/intl/strres/src/nsStringBundleTextOverride.cpp @@ -10,9 +10,6 @@ #include "nsNetUtil.h" #include "nsAppDirectoryServiceDefs.h" -static NS_DEFINE_CID(kPersistentPropertiesCID, NS_IPERSISTENTPROPERTIES_CID); - - // first we need a simple class which wraps a nsIPropertyElement and // cuts out the leading URL from the key class URLPropertyElement : public nsIPropertyElement @@ -152,6 +149,7 @@ nsStringBundleTextOverride::Init() rv = NS_OpenURI(getter_AddRefs(in), uri); if (NS_FAILED(rv)) return rv; + static NS_DEFINE_CID(kPersistentPropertiesCID, NS_IPERSISTENTPROPERTIES_CID); mValues = do_CreateInstance(kPersistentPropertiesCID, &rv); if (NS_FAILED(rv)) return rv;