Fix code style issues

refs #5219
This commit is contained in:
Gunnar Beutner 2017-05-09 09:01:08 +02:00
parent a43e8d6b2d
commit c611a31670
2 changed files with 5 additions and 5 deletions

View File

@ -234,19 +234,19 @@ void InfluxdbWriter::CheckResultHandler(const Checkable::Ptr& checkable, const C
// Prevent missing macros from warning; will return an empty value
// which will be filtered out in SendMetric()
String missing_macro;
tags->Set(pair.first, MacroProcessor::ResolveMacros(pair.second, resolvers, cr, &missing_macro));
tags->Set(pair.first, MacroProcessor::ResolveMacros(pair.second, resolvers, cr, &missing_macro));
}
}
SendPerfdata(tmpl, checkable, cr, ts);
}
String InfluxdbWriter::FormatInteger(const int val)
String InfluxdbWriter::FormatInteger(int val)
{
return Convert::ToString(val) + "i";
}
String InfluxdbWriter::FormatBoolean(const bool val)
String InfluxdbWriter::FormatBoolean(bool val)
{
return String(val);
}

View File

@ -82,8 +82,8 @@ private:
void FlushHandler(const String& body);
static String FormatInteger(const int val);
static String FormatBoolean(const bool val);
static String FormatInteger(int val);
static String FormatBoolean(bool val);
static String EscapeKey(const String& str);
static String EscapeField(const String& str);