Commit 191ac17e authored by Pablo Rauzy's avatar Pablo Rauzy Committed by Christoph Cullmann
Browse files

improve code quality: Minor - The scope of the variable 'keyEvent' can be reduced

parent 5e5bad7b
......@@ -136,9 +136,9 @@ bool KeyboardMacrosPlugin::play()
if (m_macro.isEmpty()) {
return false;
}
QKeyEvent *keyEvent;
Macro::Iterator it;
for (it = m_macro.begin(); it != m_macro.end(); it++) {
QKeyEvent *keyEvent;
// send key press
keyEvent = (*it).keyPress();
qApp->sendEvent(qApp->focusWidget(), keyEvent);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment