removed unsecure wxTmpnam() function (patch by Francesco Montorsi)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2007-07-08 19:06:03 +00:00
parent 6dc2e82330
commit 57e2b887a0
3 changed files with 8 additions and 33 deletions

View File

@@ -2,7 +2,7 @@
// Name: wx/wxcrt.h
// Purpose: Type-safe ANSI and Unicode builds compatible wrappers for
// CRT functions
// Author: Joel Farley, Ove K<>ven
// Author: Joel Farley, Ove K<>ven
// Modified by: Vadim Zeitlin, Robert Roebling, Ron Lee, Vaclav Slavik
// Created: 1998/06/12
// RCS-ID: $Id$
@@ -703,13 +703,6 @@ inline int wxRemove(const wxString& path)
inline int wxRename(const wxString& oldpath, const wxString& newpath)
{ return wxCRT_Rename(oldpath.fn_str(), newpath.fn_str()); }
// NB: we don't provide wxString/wxCStrData versions of wxTmpnam, because 's'
// is writable
inline char *wxTmpnam(char *s)
{ return wxCRT_TmpnamA(s); }
inline wchar_t *wxTmpnam(wchar_t *s)
{ return wxCRT_TmpnamW(s); }
extern WXDLLIMPEXP_BASE int wxPuts(const wxString& s);
extern WXDLLIMPEXP_BASE int wxFputs(const wxString& s, FILE *stream);
extern WXDLLIMPEXP_BASE void wxPerror(const wxString& s);