mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 07:51:28 +12:00
fix some warnings
This commit is contained in:
parent
c20aa2ad5f
commit
38d612e5ba
3 changed files with 5 additions and 15 deletions
|
@ -3,8 +3,6 @@
|
|||
|
||||
#include <iostream>
|
||||
#include <chrono>
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
|
||||
#include <QApplication>
|
||||
#include <QCommandLineParser>
|
||||
|
@ -28,6 +26,7 @@
|
|||
|
||||
#include "headless_application.h"
|
||||
#include "Utilities/sema.h"
|
||||
#include "Utilities/date_time.h"
|
||||
#include "Crypto/decrypt_binaries.h"
|
||||
#ifdef _WIN32
|
||||
#include "module_verifier.hpp"
|
||||
|
@ -410,11 +409,8 @@ void log_q_debug(QtMsgType type, const QMessageLogContext& context, const QStrin
|
|||
template <>
|
||||
void fmt_class_string<std::chrono::sys_time<typename std::chrono::system_clock::duration>>::format(std::string& out, u64 arg)
|
||||
{
|
||||
std::ostringstream ss;
|
||||
const std::time_t dateTime = std::chrono::system_clock::to_time_t(get_object(arg));
|
||||
const std::tm tm = *std::localtime(&dateTime);
|
||||
ss << std::put_time(&tm, "%Y-%m-%eT%H:%M:%S");
|
||||
out += ss.str();
|
||||
out += date_time::fmt_time("%Y-%m-%eT%H:%M:%S", dateTime);
|
||||
}
|
||||
|
||||
void run_platform_sanity_checks()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue