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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue