freebsd-ports/graphics/digikam-kde4/files/patch-digikam_digikam_scanlib.cpp
Ion-Mihai Tetcu 1fd7d56db5 Fix build on 4.x
PR:		ports/95645
Submitted by:	maintainer
Approved by:	lawrance (mentor, implicit)
2006-06-10 15:49:01 +00:00

20 lines
672 B
C++

--- digikam/digikam/scanlib.cpp.orig Tue Apr 11 13:48:55 2006
+++ digikam/digikam/scanlib.cpp Tue Apr 11 13:50:28 2006
@@ -260,7 +260,7 @@
int items = 0;
QDir dir( directory );
- if ( !dir.exists() or !dir.isReadable() )
+ if ( !dir.exists() || !dir.isReadable() )
return 0;
const QFileInfoList *list = dir.entryInfoList();
@@ -287,7 +287,7 @@
void ScanLib::allFiles(const QString& directory)
{
QDir dir( directory );
- if ( !dir.exists() or !dir.isReadable() )
+ if ( !dir.exists() || !dir.isReadable() )
{
kdWarning() << "Folder does not exist or is not readable: "
<< directory << endl;