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

This commit is contained in:
2019-07-04 19:18:03 +02:00
parent 32836c6c58
commit 017e7fdd2e
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));
}
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));
}
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));
}
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];
}

View File

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