Bug 946209 - Build intl/strres in unified mode; r=smontagu

--HG--
extra : rebase_source : aa4b70a6ad3bd3b718169cbf5ee2a7bd038e5c1d
This commit is contained in:
Ehsan Akhgari 2013-12-04 12:07:57 -05:00
Родитель 9fe3e9b7a0
Коммит 75f8256dce
3 изменённых файлов: 4 добавлений и 6 удалений

Просмотреть файл

@ -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',
]

Просмотреть файл

@ -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()
{
@ -85,6 +84,7 @@ 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);

Просмотреть файл

@ -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;