projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replaced all the strxxx() function calls with wxStrxxx() function calls.
[wxWidgets.git]
/
src
/
common
/
filesys.cpp
diff --git
a/src/common/filesys.cpp
b/src/common/filesys.cpp
index 24e5687e6dd7951ceff86d16f86d5a94d4ac7073..b0f1c67a4c7182db86d53de35c5782fc228282ab 100644
(file)
--- a/
src/common/filesys.cpp
+++ b/
src/common/filesys.cpp
@@
-97,8
+97,14
@@
wxString wxFileSystemHandler::GetMimeTypeFromExt(const wxString& location)
}
ft = m_MimeMng -> GetFileTypeFromExtension(ext);
}
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;
+ }
}
}
@@
-155,11
+161,16
@@
wxString wxFileSystemHandler::GetAnchor(const wxString& location) const
}
}
-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
//--------------------------------------------------------------------------------
// wxLocalFSHandler