From db04e1da351f607d91396cb0ea62bc393bc1852d Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <github@naumov.de>
Date: Sat, 2 Mar 2019 11:35:40 +0100
Subject: [PATCH] [MeL] Explicit construction of Histogram.

---
 MeshLib/MeshQuality/ElementQualityInterface.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/MeshLib/MeshQuality/ElementQualityInterface.h b/MeshLib/MeshQuality/ElementQualityInterface.h
index 7fd3742fda4..83fe3d12aca 100644
--- a/MeshLib/MeshQuality/ElementQualityInterface.h
+++ b/MeshLib/MeshQuality/ElementQualityInterface.h
@@ -65,8 +65,7 @@ public:
         if (_quality_tester)
             return _quality_tester->getHistogram(static_cast<std::size_t>(n_bins));
 
-        std::vector<double> empty_quality_vec(0);
-        return empty_quality_vec;
+        return BaseLib::Histogram<double>{{}};
     }
 
     /// Writes a histogram of the quality vector to a specified file.
-- 
GitLab