зеркало из https://github.com/mozilla/gecko-dev.git
fix some unix warnning
This commit is contained in:
Родитель
a8a5b4e4bc
Коммит
7d08d53c85
|
@ -40,7 +40,7 @@ public:
|
|||
/**
|
||||
* Class destructor.
|
||||
*/
|
||||
~nsEUCJPToUnicode();
|
||||
virtual ~nsEUCJPToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
|
|
|
@ -65,7 +65,7 @@ public:
|
|||
/**
|
||||
* Class destructor.
|
||||
*/
|
||||
~nsISO2022JPToUnicode();
|
||||
virtual ~nsISO2022JPToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
|
|
|
@ -146,7 +146,7 @@ extern "C" NS_EXPORT nsresult NSGetFactory(nsISupports* serviceMgr,
|
|||
nsConverterFactory * fac;
|
||||
FactoryData * data;
|
||||
|
||||
for (PRInt32 i=0; i<ARRAY_SIZE(g_FactoryData); i++) {
|
||||
for (PRUint32 i=0; i<ARRAY_SIZE(g_FactoryData); i++) {
|
||||
data = &(g_FactoryData[i]);
|
||||
if (aClass.Equals(*(data->mCID))) {
|
||||
fac = new nsConverterFactory(data);
|
||||
|
@ -167,7 +167,7 @@ extern "C" NS_EXPORT nsresult NSRegisterSelf(nsISupports* serviceMgr, const char
|
|||
{
|
||||
nsresult res;
|
||||
|
||||
for (PRInt32 i=0; i<ARRAY_SIZE(g_FactoryData); i++) {
|
||||
for (PRUint32 i=0; i<ARRAY_SIZE(g_FactoryData); i++) {
|
||||
res = nsRepository::RegisterComponent(*(g_FactoryData[i].mCID), NULL, NULL,
|
||||
path, PR_TRUE, PR_TRUE);
|
||||
if(NS_FAILED(res) && (NS_ERROR_FACTORY_EXISTS != res)) return res;
|
||||
|
@ -180,7 +180,7 @@ extern "C" NS_EXPORT nsresult NSUnregisterSelf(nsISupports* serviceMgr, const ch
|
|||
{
|
||||
nsresult res;
|
||||
|
||||
for (PRInt32 i=0; i<ARRAY_SIZE(g_FactoryData); i++) {
|
||||
for (PRUint32 i=0; i<ARRAY_SIZE(g_FactoryData); i++) {
|
||||
res = nsRepository::UnregisterFactory(*(g_FactoryData[i].mCID), path);
|
||||
if(NS_FAILED(res)) return res;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче