mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-12-01 17:41:12 +00:00
refactor: modernize standard library usage across six Sonar rules (#5930)
This commit is contained in:
1 parent
81a677c1ee
commit
80588defde
37 files changed
+464
-121
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user