mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
input-rec: Remove unnecessary externs and resolve linter errors
This commit is contained in:
committed by
lightningterror
parent
90938b100c
commit
551b52922a
@@ -19,7 +19,7 @@
|
||||
|
||||
namespace inputRec
|
||||
{
|
||||
void log(const std::string log)
|
||||
void log(const std::string& log)
|
||||
{
|
||||
if (log.empty())
|
||||
return;
|
||||
@@ -31,7 +31,7 @@ namespace inputRec
|
||||
GSosdLog(log.c_str(), wxGetApp().GetProgramLog()->GetRGBA(ConsoleColors::Color_StrongMagenta));
|
||||
}
|
||||
|
||||
void consoleLog(const std::string log)
|
||||
void consoleLog(const std::string& log)
|
||||
{
|
||||
if (log.empty())
|
||||
return;
|
||||
@@ -39,7 +39,7 @@ namespace inputRec
|
||||
recordingConLog(fmt::format("[REC]: {}\n", log));
|
||||
}
|
||||
|
||||
void consoleMultiLog(std::vector<std::string> logs)
|
||||
void consoleMultiLog(const std::vector<std::string>& logs)
|
||||
{
|
||||
std::string log;
|
||||
for (std::string l : logs)
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
namespace inputRec
|
||||
{
|
||||
extern void log(const std::string log);
|
||||
extern void consoleLog(const std::string log);
|
||||
extern void consoleMultiLog(std::vector<std::string> logs);
|
||||
void log(const std::string& log);
|
||||
void consoleLog(const std::string& log);
|
||||
void consoleMultiLog(const std::vector<std::string>& logs);
|
||||
} // namespace inputRec
|
||||
|
||||
Reference in New Issue
Block a user