Small optimisation: use a const&
authorCarl Hetherington <cth@carlh.net>
Fri, 20 Jan 2023 21:40:04 +0000 (22:40 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 27 Feb 2023 13:47:25 +0000 (14:47 +0100)
src/lib/analyse_subtitles_job.cc
src/lib/analyse_subtitles_job.h

index f0dacf36bf0b829c86bce347f560264776b20fe4..d222ad3b8b28d9a98b67f2ec9386155e3c3b431b 100644 (file)
@@ -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;
index ef720ef09733b49557a23fd17af477bd43dc45f6..c47117c5774835d8056205d08df83077547dc141 100644 (file)
@@ -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;