Commit 90d10adf authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

=="" -> isEmpty()

svn path=/branches/kpdf_experiments/kdegraphics/kpdf/; revision=357260
parent e01387cc
...@@ -476,10 +476,10 @@ void KPDFDocument::slotProcessLink( const KPDFLink * link ) ...@@ -476,10 +476,10 @@ void KPDFDocument::slotProcessLink( const KPDFLink * link )
{ {
KMimeType::Ptr mime; KMimeType::Ptr mime;
KService::Ptr ptr; KService::Ptr ptr;
// the only pdf i have that has that kind of link don't define an application // the only pdf i have that has that kind of link don't define an application
// and use the fileName as the file to open // and use the fileName as the file to open
fileName = giveAbsolutePath( fileName ); fileName = giveAbsolutePath( fileName );
mime = KMimeType::findByPath( fileName ); mime = KMimeType::findByPath( fileName );
// Check executables // Check executables
...@@ -506,7 +506,7 @@ void KPDFDocument::slotProcessLink( const KPDFLink * link ) ...@@ -506,7 +506,7 @@ void KPDFDocument::slotProcessLink( const KPDFLink * link )
return; return;
} }
} }
ptr = KServiceTypeProfile::preferredService(mime->name(), "Application"); ptr = KServiceTypeProfile::preferredService(mime->name(), "Application");
if (ptr) if (ptr)
{ {
...@@ -612,7 +612,7 @@ void KPDFDocument::processPageList( bool documentChanged ) ...@@ -612,7 +612,7 @@ void KPDFDocument::processPageList( bool documentChanged )
void KPDFDocument::unHilightPages() void KPDFDocument::unHilightPages()
{ {
if ( d->filterText == "" ) if ( d->filterText.isEmpty() )
return; return;
d->filterText = ""; d->filterText = "";
......
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