WModifyTab: Pass QModelIndex by const reference

Just a trivial way to eliminate a 24 byte copy.
This commit is contained in:
Lioncache
2025-12-07 02:51:16 -05:00
parent 511c86785b
commit 8f8e6aa8f4
2 changed files with 2 additions and 2 deletions

View File

@@ -256,7 +256,7 @@ void WModifyTab::OnEditLinkClicked()
} }
// ************ PRIVATE SLOTS ************ // ************ PRIVATE SLOTS ************
void WModifyTab::OnLinkTableDoubleClick(QModelIndex Index) void WModifyTab::OnLinkTableDoubleClick(const QModelIndex& Index)
{ {
if (Index.column() == 0) if (Index.column() == 0)
{ {

View File

@@ -63,7 +63,7 @@ private:
std::unique_ptr<Ui::WModifyTab> ui; std::unique_ptr<Ui::WModifyTab> ui;
private slots: private slots:
void OnLinkTableDoubleClick(QModelIndex Index); void OnLinkTableDoubleClick(const QModelIndex& Index);
}; };
#endif // WMODIFYTAB_H #endif // WMODIFYTAB_H