summaryrefslogtreecommitdiffstats
path: root/src/webqueryarxiv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webqueryarxiv.cpp')
-rw-r--r--src/webqueryarxiv.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/webqueryarxiv.cpp b/src/webqueryarxiv.cpp
index 5611007..48b526e 100644
--- a/src/webqueryarxiv.cpp
+++ b/src/webqueryarxiv.cpp
@@ -106,8 +106,8 @@ namespace KBibTeX
m_reJour( "^([a-zA-Z. ]+)" ), m_reYear( "\\b((18|19|20)\\d{2})\\b" ), m_rePages( "\\b([1-9]\\d{0,2})\\s*[-]+\\s*([1-9]\\d{0,2})\\b" )
{
- m_importer = new BibTeX::FileImporterBibTeX( FALSE );
- m_importer->setIgnoreComments( TRUE );
+ m_importer = new BibTeX::FileImporterBibTeX( false );
+ m_importer->setIgnoreComments( true );
m_widget = new WebQueryArXivWidget( parent );
}
@@ -141,7 +141,7 @@ namespace KBibTeX
{
m_urls.clear();
// FIXME: The following code crashes KBibTeX:
- // if ( m_currentJob != NULL ) m_currentJob->kill( FALSE );
+ // if ( m_currentJob != NULL ) m_currentJob->kill( false );
}
void WebQueryArXiv::query()
@@ -169,7 +169,7 @@ namespace KBibTeX
KURL url = KURL( TQString( "http://www.arxiv.org/find/all/1/all:+%2/0/1/0/all/0/1?per_page=%1" ).arg( m_numberOfResults ).arg( query.replace( "%", "%25" ).replace( "+", "%2B" ).replace( " ", "%20" ).replace( "#", "%23" ).replace( "&", "%26" ).replace( "?", "%3F" ) ) );
m_currentJobMutex.lock();
- TDEIO::Job *job = TDEIO::storedGet( url, FALSE, FALSE );
+ TDEIO::Job *job = TDEIO::storedGet( url, false, false );
connect( job, TQ_SIGNAL( result( TDEIO::Job * ) ), this, TQ_SLOT( unlockJob( TDEIO::Job * ) ) );
connect( job, TQ_SIGNAL( result( TDEIO::Job * ) ), this, TQ_SLOT( arXivResult( TDEIO::Job * ) ) );
}
@@ -226,7 +226,7 @@ namespace KBibTeX
{
m_aborted = false;
m_currentJobMutex.lock();
- TDEIO::Job *job = TDEIO::storedGet( abstractURL, FALSE, FALSE );
+ TDEIO::Job *job = TDEIO::storedGet( abstractURL, false, false );
connect( job, TQ_SIGNAL( result( TDEIO::Job * ) ), this, TQ_SLOT( unlockJob( TDEIO::Job * ) ) );
connect( job, TQ_SIGNAL( result( TDEIO::Job * ) ), this, TQ_SLOT( arXivAbstractResult( TDEIO::Job * ) ) );
}
@@ -311,7 +311,7 @@ namespace KBibTeX
while (( p2 = result.find( "last revised", p + 1 ) ) >= 0 )
p = p2;
p2 = result.find( TQRegExp( "\\d\\d\\d\\d" ), p );
- bool ok = FALSE;
+ bool ok = false;
int year = result.mid( p2, 4 ).toInt( &ok );
if ( !ok ) year = 0;
if ( year > 1000 )
@@ -533,7 +533,7 @@ namespace KBibTeX
}
}
- if ( result.find( TQRegExp( "Ph\\.?D\\.? Thesis", FALSE ), 0 ) >= 0 )
+ if ( result.find( TQRegExp( "Ph\\.?D\\.? Thesis", false ), 0 ) >= 0 )
entry->setEntryType( BibTeX::Entry::etPhDThesis );
field = new BibTeX::EntryField( BibTeX::EntryField::ftURL );
@@ -553,7 +553,7 @@ namespace KBibTeX
KURL url = m_urls.first();
m_urls.remove( url );
m_currentJobMutex.lock();
- TDEIO::Job *job = TDEIO::storedGet( url, FALSE, FALSE );
+ TDEIO::Job *job = TDEIO::storedGet( url, false, false );
connect( job, TQ_SIGNAL( result( TDEIO::Job * ) ), this, TQ_SLOT( unlockJob( TDEIO::Job * ) ) );
connect( job, TQ_SIGNAL( result( TDEIO::Job * ) ), this, TQ_SLOT( arXivAbstractResult( TDEIO::Job * ) ) );
}