mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-08 13:15:01 +00:00
WModifyTab: Pass QModelIndex by const reference
Just a trivial way to eliminate a 24 byte copy.
This commit is contained in:
@@ -256,7 +256,7 @@ void WModifyTab::OnEditLinkClicked()
|
||||
}
|
||||
|
||||
// ************ PRIVATE SLOTS ************
|
||||
void WModifyTab::OnLinkTableDoubleClick(QModelIndex Index)
|
||||
void WModifyTab::OnLinkTableDoubleClick(const QModelIndex& Index)
|
||||
{
|
||||
if (Index.column() == 0)
|
||||
{
|
||||
|
||||
@@ -63,7 +63,7 @@ private:
|
||||
std::unique_ptr<Ui::WModifyTab> ui;
|
||||
|
||||
private slots:
|
||||
void OnLinkTableDoubleClick(QModelIndex Index);
|
||||
void OnLinkTableDoubleClick(const QModelIndex& Index);
|
||||
};
|
||||
|
||||
#endif // WMODIFYTAB_H
|
||||
|
||||
Reference in New Issue
Block a user