const & for foreach 'iterators'
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=952187
This commit is contained in:
parent
e24635dece
commit
5d0e70291b
@ -181,7 +181,7 @@ QList<QAction*> AppletInterface::contextualActions() const
|
||||
QList<QAction*> actions;
|
||||
Plasma::Applet *a = applet();
|
||||
|
||||
foreach (const QString name, m_actions) {
|
||||
foreach (const QString &name, m_actions) {
|
||||
QAction *action = a->action(name);
|
||||
|
||||
if (action) {
|
||||
|
@ -443,7 +443,7 @@ void SimpleJavaScriptApplet::setupObjects()
|
||||
|
||||
QScriptValue args = m_engine->newArray();
|
||||
int i = 0;
|
||||
foreach (QVariant arg, applet()->startupArguments()) {
|
||||
foreach (const QVariant &arg, applet()->startupArguments()) {
|
||||
args.setProperty(i, variantToScriptValue(arg));
|
||||
++i;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user