input-rec: Remove unnecessary `extern`s and resolve linter errors

This commit is contained in:
Tyler Wilding 2021-04-10 19:53:52 -04:00 committed by lightningterror
parent 90938b100c
commit 551b52922a
2 changed files with 6 additions and 6 deletions

View File

@ -19,7 +19,7 @@
namespace inputRec namespace inputRec
{ {
void log(const std::string log) void log(const std::string& log)
{ {
if (log.empty()) if (log.empty())
return; return;
@ -31,7 +31,7 @@ namespace inputRec
GSosdLog(log.c_str(), wxGetApp().GetProgramLog()->GetRGBA(ConsoleColors::Color_StrongMagenta)); 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()) if (log.empty())
return; return;
@ -39,7 +39,7 @@ namespace inputRec
recordingConLog(fmt::format("[REC]: {}\n", log)); recordingConLog(fmt::format("[REC]: {}\n", log));
} }
void consoleMultiLog(std::vector<std::string> logs) void consoleMultiLog(const std::vector<std::string>& logs)
{ {
std::string log; std::string log;
for (std::string l : logs) for (std::string l : logs)

View File

@ -28,7 +28,7 @@
namespace inputRec namespace inputRec
{ {
extern void log(const std::string log); void log(const std::string& log);
extern void consoleLog(const std::string log); void consoleLog(const std::string& log);
extern void consoleMultiLog(std::vector<std::string> logs); void consoleMultiLog(const std::vector<std::string>& logs);
} // namespace inputRec } // namespace inputRec