From eebd571e425642560842d17bfc97a202c78b40b7 Mon Sep 17 00:00:00 2001 From: Kevin Lo Date: Fri, 23 Nov 2012 08:59:11 +0000 Subject: [PATCH] Apply an upstream patch that fixes build with clang. Feature safe: yes --- .../files/patch-kparts__componentfactory.h | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 x11/kdelibs4/files/patch-kparts__componentfactory.h 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 + ++#include ++ + 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( library.toLocal8Bit().data(), parentWidget, ++ return createPartInstanceFromLibrary( QFile::encodeName( library ).constData(), parentWidget, + parent, args, error ); + } + #endif