svn commit: r307674 - head/x11/kdelibs4/files
Kevin Lo
kevlo at FreeBSD.org
Fri Nov 23 08:59:11 UTC 2012
Author: kevlo
Date: Fri Nov 23 08:59:11 2012
New Revision: 307674
URL: http://svnweb.freebsd.org/changeset/ports/307674
Log:
Apply an upstream patch that fixes build with clang.
Feature safe: yes
Added:
head/x11/kdelibs4/files/patch-kparts__componentfactory.h (contents, props changed)
Added: head/x11/kdelibs4/files/patch-kparts__componentfactory.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11/kdelibs4/files/patch-kparts__componentfactory.h Fri Nov 23 08:59:11 2012 (r307674)
@@ -0,0 +1,29 @@
+--- kparts/componentfactory.h.orig 2012-11-23 16:20:14.000000000 +0800
++++ kparts/componentfactory.h 2012-11-23 16:20:22.000000000 +0800
+@@ -28,6 +28,8 @@
+ #endif
+ #include <kmimetypetrader.h>
+
++#include <QtCore/QFile>
++
+ namespace KParts
+ {
+ namespace ComponentFactory
+@@ -81,7 +83,7 @@
+ const QStringList &args = QStringList(),
+ int *error = 0 )
+ {
+- KLibrary *library = KLibLoader::self()->library( QString( libraryName ) ); // compatibility hack
++ KLibrary *library = KLibLoader::self()->library( QFile::decodeName( libraryName ) ); // compatibility hack
+ if ( !library )
+ {
+ if ( error )
+@@ -135,7 +137,7 @@
+ return 0;
+ }
+
+- return createPartInstanceFromLibrary<T>( library.toLocal8Bit().data(), parentWidget,
++ return createPartInstanceFromLibrary<T>( QFile::encodeName( library ).constData(), parentWidget,
+ parent, args, error );
+ }
+ #endif
More information about the svn-ports-all
mailing list