input-rec: Remove unnecessary externs and resolve linter errors

This commit is contained in:
Tyler Wilding
2021-05-10 16:19:27 +02:00
committed by lightningterror
parent 90938b100c
commit 551b52922a
2 changed files with 6 additions and 6 deletions
@@ -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