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 max = *std::max_element(values_.begin(), values_.end());
const float mean = const float mean =
std::accumulate(values_.begin(), values_.end(), 0.f) / values_.size(); std::accumulate(values_.begin(), values_.end(), 0.f) / values_.size();
string result = "Count: " + std::to_string(values_.size()) + " Min: " + string result = "Count: " + std::to_string(values_.size()) +
std::to_string(min) + " Max: " + std::to_string(max) + " Min: " + std::to_string(min) +
" Max: " + std::to_string(max) +
" Mean: " + std::to_string(mean); " Mean: " + std::to_string(mean);
if (min == max) { if (min == max) {
return result; return result;

View File

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

View File

@ -64,8 +64,8 @@ void OrderedMultiQueue::Add(const QueueKey& queue_key,
std::unique_ptr<Data> data) { std::unique_ptr<Data> data) {
auto it = queues_.find(queue_key); auto it = queues_.find(queue_key);
if (it == queues_.end()) { 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; return;
} }
it->second.queue.Push(std::move(data)); it->second.queue.Push(std::move(data));