summaryrefslogtreecommitdiffstats
path: root/gui/polkit-tqt-gui-actionbuttons.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/polkit-tqt-gui-actionbuttons.cpp')
-rw-r--r--gui/polkit-tqt-gui-actionbuttons.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/gui/polkit-tqt-gui-actionbuttons.cpp b/gui/polkit-tqt-gui-actionbuttons.cpp
index 78aced5d6..f4e72d54f 100644
--- a/gui/polkit-tqt-gui-actionbuttons.cpp
+++ b/gui/polkit-tqt-gui-actionbuttons.cpp
@@ -32,7 +32,7 @@ namespace PolkitTQt
namespace Gui
{
-ActionButtons::ActionButtons(const TQValueList<TQButton*> &buttons, const TQString &actionId,
+ActionButtons::ActionButtons(TQValueList<TQButton*> &buttons, const TQString &actionId,
TQObject *parent) : ActionButton(*new ActionButtonPrivate(), actionId, parent)
{
setButtons(buttons);
@@ -42,17 +42,15 @@ ActionButtons::~ActionButtons()
{
}
-void ActionButtons::setButtons(const TQValueList<TQButton*> &buttons)
+void ActionButtons::setButtons(TQValueList<TQButton*> &buttons)
{
- TQValueList<TQButton*>::iterator butIt;
- for (butIt = d->buttons.begin(); butIt != d->buttons.end(); ++butIt)
+ for (TQButton *&ent : buttons)
{
- TQButton *ent = *butIt;
addButton(ent);
}
}
-TQValueList<TQButton *> ActionButtons::buttons() const
+TQValueList<TQButton*> ActionButtons::buttons() const
{
return d->buttons;
}