Remove redundant "virtual". (#191)

master
Wolfgang Hess 2017-01-26 13:37:02 +01:00 committed by GitHub
parent 2dd912f5e7
commit 97bb74157f
3 changed files with 6 additions and 5 deletions

View File

@ -37,8 +37,9 @@ string Histogram::ToString(const int buckets) const {
const float max = *std::max_element(values_.begin(), values_.end());
const float mean =
std::accumulate(values_.begin(), values_.end(), 0.f) / values_.size();
string result = "Count: " + std::to_string(values_.size()) + " Min: " +
std::to_string(min) + " Max: " + std::to_string(max) +
string result = "Count: " + std::to_string(values_.size()) +
" Min: " + std::to_string(min) +
" Max: " + std::to_string(max) +
" Mean: " + std::to_string(mean);
if (min == max) {
return result;

View File

@ -47,7 +47,7 @@ class FileWriter {
// An Implementation of file using std::ofstream.
class StreamFileWriter : public FileWriter {
public:
virtual ~StreamFileWriter() override;
~StreamFileWriter() override;
StreamFileWriter(const string& filename);

View File

@ -64,8 +64,8 @@ void OrderedMultiQueue::Add(const QueueKey& queue_key,
std::unique_ptr<Data> data) {
auto it = queues_.find(queue_key);
if (it == queues_.end()) {
LOG_EVERY_N(WARNING, 1000) << "Ignored data for queue: '" << queue_key
<< "'";
LOG_EVERY_N(WARNING, 1000)
<< "Ignored data for queue: '" << queue_key << "'";
return;
}
it->second.queue.Push(std::move(data));