Commit 8a375139 authored by dickelbeck's avatar dickelbeck

const strings

parent 738d00ba
......@@ -672,7 +672,8 @@ void OpenPDF( const wxString& file )
{
AddDelimiterString( filename );
command.Empty();
wxString tries[] =
const static wxString tries[] =
{
wxT( "/usr/bin/evince" ),
wxT( "/usr/bin/xpdf" ),
......@@ -680,10 +681,12 @@ void OpenPDF( const wxString& file )
wxT( "/usr/bin/gpdf" ),
wxT( "" ),
};
for( int i = 0; ; i++ )
{
if( tries[i].IsEmpty() )
break;
if( wxFileExists( tries[i] ) )
{
command = tries[i] + wxT( " " ) + filename;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment