Using QLatin1Char for directory separators in getPluginPaths()

Reviewed-by: dt
This commit is contained in:
Robert Loehning
2009-07-24 12:11:12 +02:00
parent e73cf2d12b
commit f4ec27cdc2

View File

@@ -181,16 +181,16 @@ static inline QStringList getPluginPaths()
const QString rootDirPath = rootDir.canonicalPath();
// 1) "plugins" (Win/Linux)
QString pluginPath = rootDirPath;
pluginPath += '/';
pluginPath += QLatin1Char('/');
pluginPath += QLatin1String(IDE_LIBRARY_BASENAME);
pluginPath += '/';
pluginPath += QLatin1Char('/');
pluginPath += QLatin1String("qtcreator");
pluginPath += '/';
pluginPath += QLatin1Char('/');
pluginPath += QLatin1String("plugins");
rc.push_back(pluginPath);
// 2) "PlugIns" (OS X)
pluginPath = rootDirPath;
pluginPath += '/';
pluginPath += QLatin1Char('/');
pluginPath += QLatin1String("PlugIns");
rc.push_back(pluginPath);
return rc;