Fix std::basic_string warnings (#16261)

This commit is contained in:
oltolm 2024-11-11 20:54:44 +01:00 committed by GitHub
parent 2262ac1684
commit 2b0f786b2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 147 additions and 130 deletions

View file

@ -1,5 +1,6 @@
#include "stdafx.h"
#include "Emu/System.h"
#include <span>
#include "np_structs_extra.h"
LOG_CHANNEL(sceNp);
@ -39,7 +40,7 @@ namespace extra_nps
if (ptr && size)
{
sceNp2.warning("Data: %s", std::basic_string_view<u8>{ptr.get_ptr(), size});
sceNp2.warning("Data: %s", std::span<u8>{ptr.get_ptr(), size});
}
}
@ -57,7 +58,7 @@ namespace extra_nps
void print_SceNpMatching2PresenceOptionData(const SceNpMatching2PresenceOptionData* opt)
{
sceNp2.warning("Data: %s", std::basic_string_view<u8>{std::data(opt->data), std::size(opt->data)});
sceNp2.warning("Data: %s", std::span<const u8>{std::data(opt->data), std::size(opt->data)});
}
void print_range(const SceNpMatching2Range* range)