HP compiler flags this "implicit conversion of string literal" as an error so

added the cast.
This commit is contained in:
jdunn%netscape.com 1999-07-14 16:45:02 +00:00
parent d40523581b
commit d5a452ac6d
2 changed files with 14 additions and 14 deletions

View File

@ -168,7 +168,7 @@ nsresult nsPluginFile::GetPluginInfo(nsPluginInfo& info)
int i,num;
UNIX_Plugin_GetMIMEDescription procedure = nsnull;
mimedescr="";
mimedescr=(char *)"";
if(procedure = (UNIX_Plugin_GetMIMEDescription)PR_FindSymbol(pLibrary,"NP_GetMIMEDescription")) {
mimedescr = procedure();
@ -226,18 +226,18 @@ nsresult nsPluginFile::GetPluginInfo(nsPluginInfo& info)
#endif
if(i==0) {
info.fMimeType = mtype ? mtype : "";
info.fMimeDescription = descr ? descr : "";
info.fExtensions = exten ? exten : "";
info.fMimeType = mtype ? mtype : (char *)"";
info.fMimeDescription = descr ? descr : (char *)"";
info.fExtensions = exten ? exten : (char *)"";
}
if(!*mtype && !descr && !exten) {
i--;
info.fVariantCount--;
} else {
info.fMimeTypeArray[i] = mtype ? mtype : "";
info.fMimeDescriptionArray[i] = descr ? descr : "";
info.fExtensionArray[i] = exten ? exten : "";
info.fMimeTypeArray[i] = mtype ? mtype : (char *)"";
info.fMimeDescriptionArray[i] = descr ? descr : (char *)"";
info.fExtensionArray[i] = exten ? exten : (char *)"";
}
start=nexttoc;
}

View File

@ -168,7 +168,7 @@ nsresult nsPluginFile::GetPluginInfo(nsPluginInfo& info)
int i,num;
UNIX_Plugin_GetMIMEDescription procedure = nsnull;
mimedescr="";
mimedescr=(char *)"";
if(procedure = (UNIX_Plugin_GetMIMEDescription)PR_FindSymbol(pLibrary,"NP_GetMIMEDescription")) {
mimedescr = procedure();
@ -226,18 +226,18 @@ nsresult nsPluginFile::GetPluginInfo(nsPluginInfo& info)
#endif
if(i==0) {
info.fMimeType = mtype ? mtype : "";
info.fMimeDescription = descr ? descr : "";
info.fExtensions = exten ? exten : "";
info.fMimeType = mtype ? mtype : (char *)"";
info.fMimeDescription = descr ? descr : (char *)"";
info.fExtensions = exten ? exten : (char *)"";
}
if(!*mtype && !descr && !exten) {
i--;
info.fVariantCount--;
} else {
info.fMimeTypeArray[i] = mtype ? mtype : "";
info.fMimeDescriptionArray[i] = descr ? descr : "";
info.fExtensionArray[i] = exten ? exten : "";
info.fMimeTypeArray[i] = mtype ? mtype : (char *)"";
info.fMimeDescriptionArray[i] = descr ? descr : (char *)"";
info.fExtensionArray[i] = exten ? exten : (char *)"";
}
start=nexttoc;
}