Remove most uses of StringFromFormat in favor of fmt
This commit is contained in:
1 parent
a5fa95adfd
commit
f9fe25291d
12 files changed
+105
-89
No files matched your search
@@ -9,6 +9,8 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "Common/Logging/Log.h"
|
||||
#include "Common/StringUtil.h"
|
||||
#include "Core/HW/EXI/EXI_Device.h"
|
||||
@@ -50,7 +52,7 @@ bool CEXIETHERNET::TAPNetworkInterface::Activate()
|
||||
const int MAX_INTERFACES = 32;
|
||||
for (int i = 0; i < MAX_INTERFACES; ++i)
|
||||
{
|
||||
strncpy(ifr.ifr_name, StringFromFormat("Dolphin%d", i).c_str(), IFNAMSIZ);
|
||||
fmt::format_to_n(ifr.ifr_name, IFNAMSIZ, "Dolphin{}", i);
|
||||
|
||||
int err;
|
||||
if ((err = ioctl(fd, TUNSETIFF, (void*)&ifr)) < 0)
|
||||
|
||||
Reference in new issue
Block a user