refactor: modernize standard library usage across six Sonar rules (#5930)

This commit is contained in:
Dave Lane authored and GitHub committed 2026-10-14 15:33:54 -04:00
1 parent 81a677c1ee
commit 80588defde
37 files changed
+464 -121

No files matched your search

+2 -1
View File
@@ -7,6 +7,7 @@
#include <fcntl.h>
#include <future>
#include <stdexcept>
#include <string_view>
// local includes
#include "graphics.h"
@@ -557,7 +558,7 @@ namespace egl {
};
for (auto ext : extensions) {
if (!std::strstr(extension_st, ext)) {
if (!std::string_view {extension_st}.contains(ext)) {
BOOST_LOG(error) << "Missing extension: ["sv << ext << ']';
return nullptr;
}