зеркало из https://github.com/mozilla/gecko-dev.git
Stopped using macros to access fields of struct that were longer than the actual struct field names.
This commit is contained in:
Родитель
9ff0a65088
Коммит
606e8a2f62
|
@ -290,7 +290,7 @@ void CURLDispatcher::DispatchToDiskAsText(CURLDispatchInfo* inDispatchInfo)
|
|||
if ((theErr != noErr) && (theErr != dupFNErr))
|
||||
ThrowIfOSErr_(theErr);
|
||||
|
||||
CFileMgr::FileSetComment(destSpec, NET_URLStruct_Address(inURL));
|
||||
CFileMgr::FileSetComment(destSpec, inURL->address);
|
||||
|
||||
char* thePath = CFileMgr::EncodedPathNameFromFSSpec(destSpec, TRUE);
|
||||
ThrowIfNULL_(thePath);
|
||||
|
@ -840,7 +840,7 @@ CURLDispatchInfo::CURLDispatchInfo(
|
|||
#endif
|
||||
|
||||
if (inURLStruct)
|
||||
mURLType = NET_URL_Type(NET_URLStruct_Address(inURLStruct));
|
||||
mURLType = NET_URL_Type(inURLStruct->address);
|
||||
else
|
||||
mURLType = 0;
|
||||
}
|
||||
|
@ -863,7 +863,7 @@ URL_Struct* CURLDispatchInfo::ReleaseURLStruct()
|
|||
char* CURLDispatchInfo::GetURL()
|
||||
{
|
||||
if (mURLStruct)
|
||||
return NET_URLStruct_Address(mURLStruct);
|
||||
return mURLStruct->address;
|
||||
else
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
@ -823,7 +823,7 @@ CMimeMapper* CreateUnknownMimeTypeMapper( URL_Struct* request )
|
|||
// Notify the user with nice names
|
||||
newName = CFileMgr::FileNameFromURL( request->address );
|
||||
fileName = newName;
|
||||
content_type = NET_URLStruct_ContentType( request );
|
||||
content_type = request->content_type;
|
||||
|
||||
::ParamText( newName, content_type, CStr255::sEmptyString, CStr255::sEmptyString );
|
||||
|
||||
|
@ -837,14 +837,14 @@ CMimeMapper* CreateUnknownMimeTypeMapper( URL_Struct* request )
|
|||
case ALRT_UnknownMimeType_Cancel:
|
||||
return NULL;
|
||||
case ALRT_UnknownMimeType_Save:
|
||||
mapper = CPrefs::CreateDefaultUnknownMapper( NET_URLStruct_ContentType(request), TRUE );
|
||||
mapper = CPrefs::CreateDefaultUnknownMapper( request->content_type, TRUE );
|
||||
mapper->SetLoadAction( CMimeMapper::Save );
|
||||
return mapper;
|
||||
case ALRT_UnknownMimeType_PickApp:
|
||||
StandardFileReply reply;
|
||||
CFilePicker::DoCustomGetFile( reply, CFilePicker::Applications, FALSE );
|
||||
if ( reply.sfGood )
|
||||
mapper = CPrefs::CreateDefaultAppMapper( reply.sfFile,NET_URLStruct_ContentType(request), TRUE );
|
||||
mapper = CPrefs::CreateDefaultAppMapper( reply.sfFile, request->content_type, TRUE );
|
||||
return mapper;
|
||||
case ALRT_UnknownMimeType_MoreInfo:
|
||||
{
|
||||
|
@ -855,7 +855,7 @@ CMimeMapper* CreateUnknownMimeTypeMapper( URL_Struct* request )
|
|||
cstring url;
|
||||
url = (const char*) string; // cstringÕs operator= expects unsigned char* to be a P string, so we have to cast
|
||||
url += "?";
|
||||
url += NET_URLStruct_ContentType( request );
|
||||
url += request->content_type;
|
||||
|
||||
AppleEvent getURLEvent;
|
||||
UAppleEventsMgr::MakeAppleEvent( AE_url_suite, AE_url_getURL, getURLEvent );
|
||||
|
@ -889,7 +889,7 @@ NET_StreamClass * NewFilePipe (
|
|||
|
||||
// 97-06-15 pkc -- We really should make a function to determine if a URL is a
|
||||
// mail attachment instead of duplicating this code.
|
||||
const char* urlAddress = request ? NET_URLStruct_Address(request) : nil;
|
||||
const char* urlAddress = request ? request->address : nil;
|
||||
Boolean isMailMessage = false;
|
||||
if (urlAddress)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче