diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-01-20 22:40:04 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-02-27 14:47:25 +0100 |
| commit | cc4eac93edc748e06b53be6a89ec8816011dd19a (patch) | |
| tree | 0b1945f8df74cdc1a58a1180fa5c8919da0a9648 /src/lib | |
| parent | b95b521c63233aa08d42026098429cae4633c95a (diff) | |
Small optimisation: use a const&
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/analyse_subtitles_job.cc | 2 | ||||
| -rw-r--r-- | src/lib/analyse_subtitles_job.h | 2 |
2 files changed, 2 insertions, 2 deletions
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> _content; boost::filesystem::path _path; |
