From 8b4a21fb53957026b9cfff9d520c427b01f84f8a Mon Sep 17 00:00:00 2001 From: zvon Date: Sat, 18 Jan 2020 22:19:17 +0100 Subject: [PATCH] TV_rename: add const --- tv_rename.cpp | 2 +- tv_rename.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tv_rename.cpp b/tv_rename.cpp index b4921f4..4f1fb49 100644 --- a/tv_rename.cpp +++ b/tv_rename.cpp @@ -81,7 +81,7 @@ searchShow( const string &show, const string &language ) { #ifndef GUI // get show's ID -string getShowId( string &show, const string &language ) { +string getShowId( const string &show, const string &language ) { size_t order{}, pos{}; auto search_results = searchShow( show, language ); for ( const auto &x : search_results ) { diff --git a/tv_rename.hpp b/tv_rename.hpp index cd4e721..1036830 100644 --- a/tv_rename.hpp +++ b/tv_rename.hpp @@ -57,7 +57,7 @@ void multipleSeasons( const string &path, string &show, void allSeasons( const string &path, string &show, const string &language, const string &pattern, const size_t &flags ); -string getShowId( string &show, const string &language ); +string getShowId( const string &show, const string &language ); #endif