diff options
author | kevlo <kevlo@FreeBSD.org> | 2012-11-23 16:59:11 +0800 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2012-11-23 16:59:11 +0800 |
commit | 54aa85b037494fe869657c1fe17c03c431f4c0d4 (patch) | |
tree | 43d60cad5166de3c8f5f2bde354af3b1e451ef6f /x11/kdelibs4 | |
parent | 8870aa9374c4d48077d8944f56c5f3c8bb060f1c (diff) | |
download | freebsd-ports-gnome-54aa85b037494fe869657c1fe17c03c431f4c0d4.tar.gz freebsd-ports-gnome-54aa85b037494fe869657c1fe17c03c431f4c0d4.tar.zst freebsd-ports-gnome-54aa85b037494fe869657c1fe17c03c431f4c0d4.zip |
Apply an upstream patch that fixes build with clang.
Feature safe: yes
Diffstat (limited to 'x11/kdelibs4')
-rw-r--r-- | x11/kdelibs4/files/patch-kparts__componentfactory.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/x11/kdelibs4/files/patch-kparts__componentfactory.h b/x11/kdelibs4/files/patch-kparts__componentfactory.h new file mode 100644 index 000000000000..4332929cfc69 --- /dev/null +++ b/x11/kdelibs4/files/patch-kparts__componentfactory.h @@ -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 |