From cc4eac93edc748e06b53be6a89ec8816011dd19a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 20 Jan 2023 22:40:04 +0100 Subject: Small optimisation: use a const& --- src/lib/analyse_subtitles_job.cc | 2 +- src/lib/analyse_subtitles_job.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/analyse_subtitles_job.cc b/src/lib/analyse_subtitles_job.cc index f0dacf36b..d222ad3b8 100644 --- a/src/lib/analyse_subtitles_job.cc +++ b/src/lib/analyse_subtitles_job.cc @@ -92,7 +92,7 @@ AnalyseSubtitlesJob::run () void -AnalyseSubtitlesJob::analyse (PlayerText text, TextType type) +AnalyseSubtitlesJob::analyse(PlayerText const& text, TextType type) { if (type != TextType::OPEN_SUBTITLE) { return; diff --git a/src/lib/analyse_subtitles_job.h b/src/lib/analyse_subtitles_job.h index ef720ef09..c47117c57 100644 --- a/src/lib/analyse_subtitles_job.h +++ b/src/lib/analyse_subtitles_job.h @@ -42,7 +42,7 @@ public: } private: - void analyse (PlayerText text, TextType type); + void analyse(PlayerText const& text, TextType type); std::weak_ptr _content; boost::filesystem::path _path; -- cgit v1.2.3