diff --git a/src/Diagnostics/DiagnosticsHolder.cpp b/src/Diagnostics/DiagnosticsHolder.cpp index a5cb963..9fa7e5f 100644 --- a/src/Diagnostics/DiagnosticsHolder.cpp +++ b/src/Diagnostics/DiagnosticsHolder.cpp @@ -17,27 +17,27 @@ void DiagnosticsHolder::Log(DiagnosticSeverity severity, DiagnosticCode code, un } } -inline void DiagnosticsHolder::LogError(DiagnosticCode code, unsigned int start, unsigned int length, std::vector arguments) { +void DiagnosticsHolder::LogError(DiagnosticCode code, unsigned int start, unsigned int length, std::vector arguments) { Log(DiagnosticSeverity::Error, code, start, length, std::move(arguments)); } -inline void DiagnosticsHolder::LogWarning(DiagnosticCode code, unsigned int start, unsigned int length, std::vector arguments) { +void DiagnosticsHolder::LogWarning(DiagnosticCode code, unsigned int start, unsigned int length, std::vector arguments) { Log(DiagnosticSeverity::Warning, code, start, length, std::move(arguments)); } -inline void DiagnosticsHolder::LogInfo(DiagnosticCode code, unsigned int start, unsigned int length, std::vector arguments) { +void DiagnosticsHolder::LogInfo(DiagnosticCode code, unsigned int start, unsigned int length, std::vector arguments) { Log(DiagnosticSeverity::Info, code, start, length, std::move(arguments)); } -inline bool DiagnosticsHolder::HasErrors() { +bool DiagnosticsHolder::HasErrors() { return _hasErrors; } -inline int DiagnosticsHolder::DiagnosticsCount() { +int DiagnosticsHolder::DiagnosticsCount() { return _diagnostics.size(); } -inline Diagnostic *DiagnosticsHolder::GetDiagnosticAt(int position) { +Diagnostic *DiagnosticsHolder::GetDiagnosticAt(int position) { return &_diagnostics[position]; } diff --git a/src/Diagnostics/DiagnosticsHolder.hpp b/src/Diagnostics/DiagnosticsHolder.hpp index 1c44585..3194ef4 100644 --- a/src/Diagnostics/DiagnosticsHolder.hpp +++ b/src/Diagnostics/DiagnosticsHolder.hpp @@ -47,7 +47,7 @@ namespace Porygon::Diagnostics { vector GetDiagnostics(); - int DiagnosticsCount(); + inline int DiagnosticsCount(); Diagnostic *GetDiagnosticAt(int position); diff --git a/src/Script.cpp b/src/Script.cpp index f6e71c5..798483b 100644 --- a/src/Script.cpp +++ b/src/Script.cpp @@ -20,7 +20,7 @@ std::u16string To_UTF16(const string &s) std::wstring_convert, char16_t> conv; return conv.from_bytes(s); } -inline Porygon::Script *Porygon::Script::Create(const string &script) { +Porygon::Script *Porygon::Script::Create(const string &script) { return Script::Create(To_UTF16(script)); }