Commit 8a375139 authored by dickelbeck's avatar dickelbeck

const strings

parent 738d00ba
...@@ -672,7 +672,8 @@ void OpenPDF( const wxString& file ) ...@@ -672,7 +672,8 @@ void OpenPDF( const wxString& file )
{ {
AddDelimiterString( filename ); AddDelimiterString( filename );
command.Empty(); command.Empty();
wxString tries[] =
const static wxString tries[] =
{ {
wxT( "/usr/bin/evince" ), wxT( "/usr/bin/evince" ),
wxT( "/usr/bin/xpdf" ), wxT( "/usr/bin/xpdf" ),
...@@ -680,10 +681,12 @@ void OpenPDF( const wxString& file ) ...@@ -680,10 +681,12 @@ void OpenPDF( const wxString& file )
wxT( "/usr/bin/gpdf" ), wxT( "/usr/bin/gpdf" ),
wxT( "" ), wxT( "" ),
}; };
for( int i = 0; ; i++ ) for( int i = 0; ; i++ )
{ {
if( tries[i].IsEmpty() ) if( tries[i].IsEmpty() )
break; break;
if( wxFileExists( tries[i] ) ) if( wxFileExists( tries[i] ) )
{ {
command = tries[i] + wxT( " " ) + filename; 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