Skip to content

Commit

Permalink
Fix clang-tidy warnings in photo gallery
Browse files Browse the repository at this point in the history
Fix the clang-tidy warnings about code introduced in
commit af6f362.
  • Loading branch information
kmdewaal committed Nov 26, 2023
1 parent af6f362 commit 4214ecb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mythtv/programs/mythfrontend/galleryslideview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#define LOC QString("Slideview: ")

// EXIF tag 0x9286 UserComment can contain garbage
static QString clean_comment(QString comment)
static QString clean_comment(const QString &comment)
{
QString result;
std::copy_if(comment.cbegin(), comment.cend(), std::back_inserter(result), [](QChar x) { return x.isPrint(); } );
Expand Down
2 changes: 1 addition & 1 deletion mythtv/programs/mythfrontend/gallerythumbview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#define LOC QString("Thumbview: ")

// EXIF tag 0x9286 UserComment can contain garbage
static QString clean_comment(QString comment)
static QString clean_comment(const QString &comment)
{
QString result;
std::copy_if(comment.cbegin(), comment.cend(), std::back_inserter(result), [](QChar x) { return x.isPrint(); } );
Expand Down

0 comments on commit 4214ecb

Please sign in to comment.