mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-19 08:29:18 +02:00
refactor(sonar): take read-only string parameters as std::string_view (cpp:S6009)
The Windows messaging helpers keep std::string, they need c_str(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#include "glsl_common.h"
|
||||
#include "utilities/Logs.h"
|
||||
|
||||
inline bool strcend(std::string const &value, std::string const &ending)
|
||||
inline bool strcend(std::string_view value, std::string_view ending)
|
||||
{
|
||||
if (ending.size() > value.size())
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user