[vlc-commits] demux/adaptive: Do not throw exception pointer

Marvin Scholz git at videolan.org
Thu Nov 29 16:37:09 CET 2018


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Mon Oct 29 12:42:22 2018 +0100| [077cb6e5fd6244198a7522481af98c1ccee8a051] | committer: Marvin Scholz

demux/adaptive: Do not throw exception pointer

Found with lgtm.com

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=077cb6e5fd6244198a7522481af98c1ccee8a051
---

 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;
     }



More information about the vlc-commits mailing list