1
0
mirror of https://github.com/altlinux/admc.git synced 2025-03-22 14:50:36 +03:00

Remove unused captures from lambdas

This commit is contained in:
Gleb Popov 2024-10-14 11:29:25 +03:00 committed by Semyon Knyazev
parent 67ebac2c9e
commit 68d67cfe2e
2 changed files with 4 additions and 4 deletions

View File

@ -607,7 +607,7 @@ void console_object_properties(const QList<ConsoleWidget *> &console_list, const
return out;
}();
auto apply_changes = [&ad2, &object_list](ConsoleWidget *target_console) {
auto apply_changes = [&object_list](ConsoleWidget *target_console) {
auto apply_changes_to_branch = [&](const QModelIndex &root_index, const int item_type, const int update_dn_role) {
if (!root_index.isValid()) {
return;
@ -791,7 +791,7 @@ void console_object_delete(const QList<ConsoleWidget *> &console_list, const QLi
return out;
}();
auto apply_changes = [&ad, &deleted_list](ConsoleWidget *target_console) {
auto apply_changes = [&deleted_list](ConsoleWidget *target_console) {
const QList<QModelIndex> root_list = {
get_object_tree_root(target_console),
get_query_tree_root(target_console),
@ -1308,7 +1308,7 @@ void console_object_move_and_rename(const QList<ConsoleWidget *> &console_list,
return out;
}();
auto apply_changes = [&ad, &old_to_new_dn_map, &old_dn_list, &new_parent_dn, &object_map](ConsoleWidget *target_console) {
auto apply_changes = [&old_to_new_dn_map, &old_dn_list, &new_parent_dn, &object_map](ConsoleWidget *target_console) {
// For object tree, we add items representing
// updated objects and delete old items. In the case
// of move, this moves the items to their new

View File

@ -113,7 +113,7 @@ bool CreateObjectHelper::accept() const {
const bool is_computer = (m_object_class == CLASS_COMPUTER);
if (is_user_or_person) {
const int uac = [this, dn, &ad]() {
const int uac = [dn, &ad]() {
const AdObject object = ad.search_object(dn, {ATTRIBUTE_USER_ACCOUNT_CONTROL});
const int out = object.get_int(ATTRIBUTE_USER_ACCOUNT_CONTROL);