m_printData.SetFilename(filename);
}
- // FIXME: use fn_str() here under Unicode?
- m_pstream = wxFopen( m_printData.GetFilename().c_str(), wxT("w+") );
+ m_pstream = wxFopen( m_printData.GetFilename().fn_str(), wxT("w+") );
if (!m_pstream)
{
{
afmName = data->GetFontMetricPath();
afmName << wxFILE_SEP_PATH << name;
- afmFile = wxFopen(afmName,wxT("r"));
+ afmFile = wxFopen(afmName.fn_str(),wxT("r"));
}
#if defined(__UNIX__) && !defined(__VMS__)
<< wxT("afm") << wxFILE_SEP_PATH
#endif
<< name;
- afmFile = wxFopen(afmName,wxT("r"));
+ afmFile = wxFopen(afmName.fn_str(),wxT("r"));
}
#endif
wxBusyCursor b; // display a busy cursor
- if(! ifile.IsEmpty())
+ if(! ifile.empty())
{
file = ifile;
if(! wxIsAbsolutePath(file))
// set to be "de", then look in "/usr/local/myapp/help/de/"
// first and fall back to "/usr/local/myapp/help" if that
// doesn't exist.
- if(wxGetLocale() && !wxGetLocale()->GetName().IsEmpty())
+ if(wxGetLocale() && !wxGetLocale()->GetName().empty())
{
wxString newfile;
newfile << WXEXTHELP_SEPARATOR << wxGetLocale()->GetName();
m_MapList = new wxList;
m_NumOfEntries = 0;
- FILE *input = wxFopen(mapFile,wxT("rt"));
+ FILE *input = wxFopen(mapFile.fn_str(),wxT("rt"));
if(! input)
return false;
do
int idx = 0, j;
bool rc;
- bool showAll = k.IsEmpty();
+ bool showAll = k.empty();
wxList::compatibility_iterator node = m_MapList->GetFirst();
wxExtHelpMapEntry *entry;
{
entry = (wxExtHelpMapEntry *)node->GetData();
compB = entry->doc; compB.LowerCase();
- if((showAll || compB.Contains(k)) && ! compB.IsEmpty())
+ if((showAll || compB.Contains(k)) && ! compB.empty())
{
urls[idx] = entry->url;
// doesn't work:
// choices[idx] = (**i).doc.Contains((**i).doc.Before(WXEXTHELP_COMMENTCHAR));
- //if(choices[idx].IsEmpty()) // didn't contain the ';'
+ //if(choices[idx].empty()) // didn't contain the ';'
// choices[idx] = (**i).doc;
choices[idx] = wxEmptyString;
for(j=0;entry->doc.c_str()[j]