Include wx/string.h according to precompiled headers of wx/wx.h (with other minor cleaning).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-04-24 08:46:59 +00:00
parent eeee4050cf
commit df91131cb0
39 changed files with 209 additions and 128 deletions

View File

@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////
// Name: utils.cpp
// Name: src/msdos/utils.cpp
// Purpose: DOS implementations of utility functions
// Author: Vaclav Slavik, M.J.Wetherell
// Id: $Id$
@@ -16,7 +16,10 @@
#endif
#include "wx/utils.h"
#include "wx/string.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
#include "wx/intl.h"
#include "wx/apptrait.h"
@@ -85,12 +88,12 @@ bool wxGetEnv(const wxString& var, wxString *value)
// wxGetenv is defined as getenv()
wxChar *p = wxGetenv(var);
if ( !p )
return FALSE;
return false;
if ( value )
*value = p;
return TRUE;
return true;
}
bool wxSetEnv(const wxString& variable, const wxChar *value)
@@ -233,7 +236,7 @@ bool wxGetUserName(wxChar *buf, int n)
bool wxGetHostName(wxChar *buf, int n)
{
const wxChar *host = wxGetenv(_T("ComputerName"));
if (!host)
host = wxGetenv(_T("HOSTNAME"));
@@ -318,7 +321,7 @@ long wxExecute(const wxString& command, int flags, wxProcess *process)
#if wxUSE_STREAMS
// A wxFFileInputStream that deletes the file in it's destructor
//
//
class wxTempFileInStream : public wxFFileInputStream
{
public: