A few Linux fixes

Originally committed to SVN as r1095.
This commit is contained in:
Rodrigo Braz Monteiro 2007-04-18 20:24:32 +00:00
parent 8a7fc29c5d
commit f64d5341ce
3 changed files with 3 additions and 5 deletions

View File

@ -47,7 +47,7 @@
///////////////
// Constructor
BrowseButton::BrowseButton(wxWindow *parent,int id,wxString text,BrowseType _type,wxPoint position,wxSize size)
: wxButton (parent,id,text == _T("") ? _("Browse...") : text,position,size)
: wxButton (parent,id,text == wxString(_T("")) ? wxString(_("Browse...")) : text,position,size)
{
type = _type;
ctrl[0] = NULL;

View File

@ -33,8 +33,6 @@
// Contact: mailto:zeratul@cellosoft.com
//
#pragma once
///////////
// Headers
#include <wx/intl.h>

View File

@ -110,7 +110,7 @@ wxString TextFileReader::GetEncoding(const wxString _filename) {
CloseHandle(ifile);
#else
ifstream ifile;
ifile.open(wxFNCONV(_filename).c_str());
ifile.open(wxFNCONV(_filename));
if (!ifile.is_open()) {
return _T("unknown");
}
@ -279,7 +279,7 @@ void TextFileReader::Open() {
throw _T("Failed opening file for reading.");
}
#else
file.open(wxFNCONV(filename).c_str(),std::ios::in | std::ios::binary);
file.open(wxFNCONV(filename),std::ios::in | std::ios::binary);
if (!file.is_open()) {
throw _T("Failed opening file for reading.");
}