}
ft = m_MimeMng -> GetFileTypeFromExtension(ext);
- if (ft && (ft -> GetMimeType(&mime))) return mime;
- else return wxEmptyString;
+ if (ft && (ft -> GetMimeType(&mime))) {
+ delete ft;
+ return mime;
+ }
+ else {
+ delete ft;
+ return wxEmptyString;
+ }
}
}
-wxString wxFileSystemHandler::FindFirst(const wxString& spec, int flags) { return wxEmptyString; }
-
-wxString wxFileSystemHandler::FindNext() { return wxEmptyString; }
-
+wxString wxFileSystemHandler::FindFirst(const wxString& WXUNUSED(spec),
+ int WXUNUSED(flags))
+{
+ return wxEmptyString;
+}
+wxString wxFileSystemHandler::FindNext()
+{
+ return wxEmptyString;
+}
//--------------------------------------------------------------------------------
// wxLocalFSHandler
while (node)
{
wxFileSystemHandler *h = (wxFileSystemHandler*) node -> GetData();
- if (h->CanOpen(m_Path + location))
+ if (h->CanOpen(m_Path + loc))
{
- s = h->OpenFile(*this, m_Path + location);
- if (s) { m_LastName = m_Path + location; break; }
+ s = h->OpenFile(*this, m_Path + loc);
+ if (s) { m_LastName = m_Path + loc; break; }
}
node = node->GetNext();
}
while (node)
{
wxFileSystemHandler *h = (wxFileSystemHandler*) node->GetData();
- if (h->CanOpen(location))
+ if (h->CanOpen(loc))
{
- s = h->OpenFile(*this, location);
- if (s) { m_LastName = location; break; }
+ s = h->OpenFile(*this, loc);
+ if (s) { m_LastName = loc; break; }
}
node = node->GetNext();
}