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

Francois Cartegnie fcvlcdev at free.fr
Fri Nov 2 21:28:03 CET 2018


Le 29/10/2018 à 12:42, Marvin Scholz a écrit :
> 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;
>      }
> 

If that solves something for you

-- 
Francois Cartegnie
VideoLAN - VLC Developer


More information about the vlc-devel mailing list