projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor mods
[wxWidgets.git]
/
src
/
os2
/
mimetype.cpp
diff --git
a/src/os2/mimetype.cpp
b/src/os2/mimetype.cpp
index bee950fe6d2ac3caa39dc2997f68ed69feb91929..623d4f064469b1cdfd2bfe9b5c7beb740f357692 100644
(file)
--- a/
src/os2/mimetype.cpp
+++ b/
src/os2/mimetype.cpp
@@
-229,6
+229,20
@@
bool wxFileTypeImpl::GetMimeType(wxString *mimeType) const
return FALSE;
}
return FALSE;
}
+bool wxFileTypeImpl::GetMimeTypes(wxArrayString& mimeTypes) const
+{
+ wxString s;
+
+ if (GetMimeType(&s))
+ {
+ mimeTypes.Clear();
+ mimeTypes.Add(s);
+ return TRUE;
+ }
+ else
+ return FALSE;
+}
+
bool wxFileTypeImpl::GetIcon(wxIcon *icon) const
{
#if wxUSE_GUI
bool wxFileTypeImpl::GetIcon(wxIcon *icon) const
{
#if wxUSE_GUI
@@
-318,7
+332,7
@@
wxMimeTypesManagerImpl::GetFileTypeFromExtension(const wxString& ext)
{
// add the leading point if necessary
wxString str;
{
// add the leading point if necessary
wxString str;
- if ( ext[
0u
] != wxT('.') ) {
+ if ( ext[
(size_t) 0
] != wxT('.') ) {
str = wxT('.');
}
str << ext;
str = wxT('.');
}
str << ext;