Skip to content

Commit

Permalink
clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
danmar committed Feb 1, 2024
1 parent 79b1d88 commit a322494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/addoninfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ std::string AddonInfo::getAddonInfo(const std::string &fileName, const std::stri
return "Failed to open " + fileName;
if (name.empty()) {
name = Path::fromNativeSeparators(fileName);
if (name.find("/") != std::string::npos)
name = name.substr(name.rfind("/") + 1);
if (name.find('/') != std::string::npos)
name = name.substr(name.rfind('/') + 1);
}
picojson::value json;
fin >> json;
Expand Down

0 comments on commit a322494

Please sign in to comment.