Rename wxSTREAM_FILEEXTENSION to wxSTREAM_FILEEXT.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -328,9 +328,9 @@ protected:
|
||||
enum wxStreamProtocolType
|
||||
{
|
||||
wxSTREAM_PROTOCOL, // wxFileSystem protocol (should be only one)
|
||||
wxSTREAM_MIMETYPE, // Mime types the stream handles
|
||||
wxSTREAM_ENCODING, // The http Content-Encodings the stream handles
|
||||
wxSTREAM_FILEEXTENSION // File extensions the stream handles
|
||||
wxSTREAM_MIMETYPE, // MIME types the stream handles
|
||||
wxSTREAM_ENCODING, // The HTTP Content-Encodings the stream handles
|
||||
wxSTREAM_FILEEXT // File extensions the stream handles
|
||||
};
|
||||
|
||||
void WXDLLIMPEXP_BASE wxUseFilterClasses();
|
||||
|
@@ -1121,9 +1121,7 @@ wxString::size_type wxFilterClassFactoryBase::FindExtension(
|
||||
{
|
||||
size_t len = wxStrlen(location);
|
||||
|
||||
for (const wxChar *const *p = GetProtocols(wxSTREAM_FILEEXTENSION);
|
||||
p && *p;
|
||||
p++)
|
||||
for (const wxChar *const *p = GetProtocols(wxSTREAM_FILEEXT); *p; p++)
|
||||
{
|
||||
size_t l = wxStrlen(*p);
|
||||
|
||||
@@ -1137,10 +1135,10 @@ wxString::size_type wxFilterClassFactoryBase::FindExtension(
|
||||
bool wxFilterClassFactoryBase::CanHandle(const wxChar *protocol,
|
||||
wxStreamProtocolType type) const
|
||||
{
|
||||
if (type == wxSTREAM_FILEEXTENSION)
|
||||
if (type == wxSTREAM_FILEEXT)
|
||||
return FindExtension(protocol) != wxString::npos;
|
||||
else
|
||||
for (const wxChar *const *p = GetProtocols(type); p && *p; p++)
|
||||
for (const wxChar *const *p = GetProtocols(type); *p; p++)
|
||||
if (wxStrcmp(*p, protocol) == 0)
|
||||
return true;
|
||||
|
||||
|
@@ -110,7 +110,7 @@ wxTarClassFactory::GetProtocols(wxStreamProtocolType type) const
|
||||
switch (type) {
|
||||
case wxSTREAM_PROTOCOL: return protocols;
|
||||
case wxSTREAM_MIMETYPE: return mimetypes;
|
||||
case wxSTREAM_FILEEXTENSION: return fileexts;
|
||||
case wxSTREAM_FILEEXT: return fileexts;
|
||||
default: return empty;
|
||||
}
|
||||
}
|
||||
|
@@ -159,7 +159,7 @@ wxZipClassFactory::GetProtocols(wxStreamProtocolType type) const
|
||||
switch (type) {
|
||||
case wxSTREAM_PROTOCOL: return protocols;
|
||||
case wxSTREAM_MIMETYPE: return mimetypes;
|
||||
case wxSTREAM_FILEEXTENSION: return fileexts;
|
||||
case wxSTREAM_FILEEXT: return fileexts;
|
||||
default: return empty;
|
||||
}
|
||||
}
|
||||
|
@@ -103,7 +103,7 @@ wxGzipClassFactory::GetProtocols(wxStreamProtocolType type) const
|
||||
case wxSTREAM_PROTOCOL: return protos;
|
||||
case wxSTREAM_MIMETYPE: return mimes;
|
||||
case wxSTREAM_ENCODING: return encs;
|
||||
case wxSTREAM_FILEEXTENSION: return exts;
|
||||
case wxSTREAM_FILEEXT: return exts;
|
||||
default: return empty;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user