Remove inline from a couple of functions that were causing issues
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2019-07-04 19:18:03 +02:00
parent 32836c6c58
commit 017e7fdd2e
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
3 changed files with 8 additions and 8 deletions

View File

@ -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<string> arguments) { void DiagnosticsHolder::LogError(DiagnosticCode code, unsigned int start, unsigned int length, std::vector<string> arguments) {
Log(DiagnosticSeverity::Error, code, start, length, std::move(arguments)); Log(DiagnosticSeverity::Error, code, start, length, std::move(arguments));
} }
inline void DiagnosticsHolder::LogWarning(DiagnosticCode code, unsigned int start, unsigned int length, std::vector<string> arguments) { void DiagnosticsHolder::LogWarning(DiagnosticCode code, unsigned int start, unsigned int length, std::vector<string> arguments) {
Log(DiagnosticSeverity::Warning, code, start, length, std::move(arguments)); Log(DiagnosticSeverity::Warning, code, start, length, std::move(arguments));
} }
inline void DiagnosticsHolder::LogInfo(DiagnosticCode code, unsigned int start, unsigned int length, std::vector<string> arguments) { void DiagnosticsHolder::LogInfo(DiagnosticCode code, unsigned int start, unsigned int length, std::vector<string> arguments) {
Log(DiagnosticSeverity::Info, code, start, length, std::move(arguments)); Log(DiagnosticSeverity::Info, code, start, length, std::move(arguments));
} }
inline bool DiagnosticsHolder::HasErrors() { bool DiagnosticsHolder::HasErrors() {
return _hasErrors; return _hasErrors;
} }
inline int DiagnosticsHolder::DiagnosticsCount() { int DiagnosticsHolder::DiagnosticsCount() {
return _diagnostics.size(); return _diagnostics.size();
} }
inline Diagnostic *DiagnosticsHolder::GetDiagnosticAt(int position) { Diagnostic *DiagnosticsHolder::GetDiagnosticAt(int position) {
return &_diagnostics[position]; return &_diagnostics[position];
} }

View File

@ -47,7 +47,7 @@ namespace Porygon::Diagnostics {
vector<Diagnostic> GetDiagnostics(); vector<Diagnostic> GetDiagnostics();
int DiagnosticsCount(); inline int DiagnosticsCount();
Diagnostic *GetDiagnosticAt(int position); Diagnostic *GetDiagnosticAt(int position);

View File

@ -20,7 +20,7 @@ std::u16string To_UTF16(const string &s)
std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t> conv; std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t> conv;
return conv.from_bytes(s); 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)); return Script::Create(To_UTF16(script));
} }