From 9e73d0dac0774955348a5164087363c5b33927b8 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Fri, 18 Jan 2019 16:56:54 +0100 Subject: Add tools/report-clang-tidy.sh - Fix various clang-tidy warnings - Fix use-after-free crash when deleting profiles --- lib/webprofile/webprofilemanager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/webprofile/webprofilemanager.h') diff --git a/lib/webprofile/webprofilemanager.h b/lib/webprofile/webprofilemanager.h index 822dc7d..f7bf52a 100644 --- a/lib/webprofile/webprofilemanager.h +++ b/lib/webprofile/webprofilemanager.h @@ -39,7 +39,7 @@ public: */ void deleteProfile(const QString &id); - void profileMenu(QMenu *menu, std::function callback, WebProfile *current = nullptr, bool checkable = false) const; + void profileMenu(QMenu *menu, const std::function &callback, WebProfile *current = nullptr, bool checkable = false) const; const QStringList idList() const { -- cgit v1.2.1