avoid an unnecessary and unused (resulting in release build warning) variable in GetMimeTypeFromExt()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -81,12 +81,9 @@ wxString wxFileSystemHandler::GetMimeTypeFromExt(const wxString& location)
|
|||||||
|
|
||||||
// Don't use mime types manager if the application doesn't need it and it would be
|
// Don't use mime types manager if the application doesn't need it and it would be
|
||||||
// cause an unacceptable delay, especially on startup.
|
// cause an unacceptable delay, especially on startup.
|
||||||
bool useMimeTypesManager = true;
|
|
||||||
#if wxUSE_SYSTEM_OPTIONS
|
#if wxUSE_SYSTEM_OPTIONS
|
||||||
useMimeTypesManager = (wxSystemOptions::GetOptionInt(wxT("filesys.no-mimetypesmanager")) == 0);
|
if ( !wxSystemOptions::GetOptionInt(wxT("filesys.no-mimetypesmanager")) )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (useMimeTypesManager)
|
|
||||||
{
|
{
|
||||||
if (!s_MinimalMimeEnsured)
|
if (!s_MinimalMimeEnsured)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user