const consistency in setupScript

This commit is contained in:
Aaron Seigo 2011-05-31 00:12:57 +02:00
parent 9b4621d339
commit acbe5b960e
2 changed files with 3 additions and 3 deletions

View File

@ -445,7 +445,7 @@ void AbstractRunnerPrivate::setupScriptSupport()
<< "which is a" << package->structure()->type() << "package"
<< ", main script is" << package->filePath("mainscript");
QString translationsPath = package->filePath("translations");
const QString translationsPath = package->filePath("translations");
if (!translationsPath.isEmpty()) {
KGlobal::dirs()->addResourceDir("locale", translationsPath);
KGlobal::locale()->insertCatalog(runnerDescription.pluginName());

View File

@ -2726,13 +2726,13 @@ void AppletPrivate::setupScriptSupport()
<< "which is a" << package->structure()->type() << "package"
<< ", main script is" << package->filePath("mainscript");
QString translationsPath = package->filePath("translations");
const QString translationsPath = package->filePath("translations");
if (!translationsPath.isEmpty()) {
KGlobal::dirs()->addResourceDir("locale", translationsPath);
KGlobal::locale()->insertCatalog(appletDescription.pluginName());
}
QString xmlPath = package->filePath("mainconfigxml");
const QString xmlPath = package->filePath("mainconfigxml");
if (!xmlPath.isEmpty()) {
QFile file(xmlPath);
KConfigGroup config = q->config();