internal: fix clang-tidy "errors" (#11862)
This commit is contained in:
parent
43fb4753fc
commit
4d82cc5957
13 changed files with 133 additions and 26 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue