X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b813b73cd79cfb4d275e9628811f379e8c5ee39..4def3b359546ee186b3db723db719f85b761f36a:/src/common/mimecmn.cpp?ds=sidebyside diff --git a/src/common/mimecmn.cpp b/src/common/mimecmn.cpp index 89b0ab281d..3ddea52b66 100644 --- a/src/common/mimecmn.cpp +++ b/src/common/mimecmn.cpp @@ -351,7 +351,7 @@ size_t wxFileType::GetAllCommands(wxArrayString *verbs, if ( commands ) commands->Clear(); -#if defined (__WXMSW__) || (__UNIX__) +#if defined (__WXMSW__) || defined(__UNIX__) return m_impl->GetAllCommands(verbs, commands, params); #else // !__WXMSW__ || Unix // we don't know how to retrieve all commands, so just try the 2 we know @@ -385,25 +385,21 @@ bool wxFileType::Unassociate() { #if defined(__WXMSW__) return m_impl->Unassociate(); -#endif - -#if defined(__UNIX__) +#elif defined(__UNIX__) return m_impl->Unassociate(this); -#endif - +#else wxFAIL_MSG( _T("not implemented") ); // TODO return FALSE; - +#endif } bool wxFileType::SetCommand(const wxString& cmd, const wxString& verb, bool overwriteprompt) { -#if defined (__WXMSW__) || (__UNIX__) +#if defined (__WXMSW__) || defined(__UNIX__) return m_impl->SetCommand(cmd, verb, overwriteprompt); #else wxFAIL_MSG(_T("not implemented")); - return FALSE; #endif } @@ -419,7 +415,7 @@ bool wxFileType::SetDefaultIcon(const wxString& cmd, int index) #endif wxCHECK_MSG( !sTmp.empty(), FALSE, _T("need the icon file") ); -#if defined (__WXMSW__) || (__UNIX__) +#if defined (__WXMSW__) || defined(__UNIX__) return m_impl->SetDefaultIcon (cmd, index); #else wxFAIL_MSG(_T("not implemented")); @@ -589,6 +585,9 @@ void wxMimeTypesManager::Initialize(int mcapStyle, EnsureImpl(); m_impl->Initialize(mcapStyle, sExtraDir); +#else + (void)mcapStyle; + (void)sExtraDir; #endif // Unix }