internal: fix clang-tidy "errors" (#11862)

This commit is contained in:
UjinT34 2025-09-29 15:10:15 +03:00 committed by GitHub
parent 43fb4753fc
commit 4d82cc5957
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 133 additions and 26 deletions

View file

@ -264,13 +264,13 @@ uint32_t NFormatUtils::glFormatToType(uint32_t gl) {
std::string NFormatUtils::drmFormatName(DRMFormat drm) {
auto n = drmGetFormatName(drm);
std::string name = n;
free(n);
free(n); // NOLINT(cppcoreguidelines-no-malloc,-warnings-as-errors)
return name;
}
std::string NFormatUtils::drmModifierName(uint64_t mod) {
auto n = drmGetFormatModifierName(mod);
std::string name = n;
free(n);
free(n); // NOLINT(cppcoreguidelines-no-malloc,-warnings-as-errors)
return name;
}

View file

@ -599,7 +599,7 @@ int64_t getPPIDof(int64_t pid) {
fclose(infile);
if (line)
free(line);
free(line); // NOLINT(cppcoreguidelines-no-malloc)
try {
return std::stoll(pidstr);

View file

@ -49,7 +49,7 @@ namespace NSplashes {
"By dt, do you mean damage tracking or distrotube?",
"Made in Poland",
"\"I use Arch, btw\" - John Cena",
"\"Hyper\".replace(\"e\", \"\")",
R"("Hyper".replace("e", ""))",
"\"my win11 install runs hyprland that is true\" - raf",
"\"stop playing league loser\" - hyprBot",
"\"If it ain't broke, don't fix it\" - Lucascito_03",