clang6 <3 whitespace

This commit is contained in:
sthen 2018-04-16 12:44:29 +00:00
parent b07cffc520
commit cac3e88bc2
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-soprano_pluginmanager_cpp,v 1.1 2018/04/16 12:44:29 sthen Exp $
Index: soprano/pluginmanager.cpp
--- soprano/pluginmanager.cpp.orig
+++ soprano/pluginmanager.cpp
@@ -43,7 +43,7 @@ namespace {
fileSearchPaths << file.fileName().section( '/', 0, -2 );
#ifndef Q_OS_WIN
// the lib folder in the same prefix
- fileSearchPaths << file.fileName().section( "/", 0, -5, QString::SectionIncludeTrailingSep ) + QLatin1String( "lib"SOPRANO_LIB_SUFFIX );
+ fileSearchPaths << file.fileName().section( "/", 0, -5, QString::SectionIncludeTrailingSep ) + QLatin1String( "lib" SOPRANO_LIB_SUFFIX );
#endif
return Soprano::findLibraryPath( file.library(), fileSearchPaths, QStringList() << QLatin1String( "soprano" ) );
}

View File

@ -0,0 +1,23 @@
$OpenBSD: patch-soprano_sopranodirs_cpp,v 1.1 2018/04/16 12:44:29 sthen Exp $
Index: soprano/sopranodirs.cpp
--- soprano/sopranodirs.cpp.orig
+++ soprano/sopranodirs.cpp
@@ -124,14 +124,14 @@ QStringList Soprano::envDirList( const char* var )
QStringList Soprano::libDirs()
{
QStringList paths = QCoreApplication::libraryPaths();
- paths << QLatin1String( SOPRANO_PREFIX"/lib"SOPRANO_LIB_SUFFIX );
+ paths << QLatin1String( SOPRANO_PREFIX "/lib" SOPRANO_LIB_SUFFIX );
#ifdef Q_OS_WIN
paths << QLatin1String( SOPRANO_PREFIX"/bin" );
paths << getWinPrefix() + QLatin1String( "/bin" );
paths << getWinPrefix() + QLatin1String( "/lib"SOPRANO_LIB_SUFFIX );
#else
- paths << QLatin1String( "/usr/lib"SOPRANO_LIB_SUFFIX );
- paths << QLatin1String( "/usr/local/lib"SOPRANO_LIB_SUFFIX );
+ paths << QLatin1String( "/usr/lib" SOPRANO_LIB_SUFFIX );
+ paths << QLatin1String( "/usr/local/lib" SOPRANO_LIB_SUFFIX );
paths += Soprano::envDirList( "LD_LIBRARY_PATH" );
#endif
return paths;