[vlc-devel] [PATCH 1/3] demux/adaptive: Do not throw exception pointer

Marvin Scholz epirat07 at gmail.com
Mon Oct 29 12:42:22 CET 2018


Found with lgtm.com
---
 modules/demux/adaptive/tools/MovingAverage.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/adaptive/tools/MovingAverage.hpp b/modules/demux/adaptive/tools/MovingAverage.hpp
index d79f7f453e..c434535dd1 100644
--- a/modules/demux/adaptive/tools/MovingAverage.hpp
+++ b/modules/demux/adaptive/tools/MovingAverage.hpp
@@ -57,7 +57,7 @@ namespace adaptive
     MovingAverage<T>::MovingAverage(unsigned nbobs) : avg(0)
     {
         if(nbobs < 1)
-            throw new std::exception();
+            throw std::exception();
         this->maxobs = nbobs;
         previous = 0;
     }
-- 
2.17.1 (Apple Git-112)



More information about the vlc-devel mailing list