[vlmc-devel] [PATCH] Reduced puke risk by replacing best crash function with an ordinary one.

Hugo Beauzée-Luyssen hugo at beauzee.fr
Mon Mar 14 21:18:43 CET 2016


On 03/13/2016 01:09 PM, Paweł Wegner wrote:
> ---
>  src/Gui/MainWindow.cpp | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
> index fc88afd..61f1470 100644
> --- a/src/Gui/MainWindow.cpp
> +++ b/src/Gui/MainWindow.cpp
> @@ -838,9 +838,10 @@ MainWindow::on_actionCrash_triggered()
>  {
>      //WARNING: read this part at your own risk !!
>      //I'm not responsible if you puke while reading this :D
> -    QString str;
> -    int test = 1 / str.length();
> -    Q_UNUSED( test );
> +    //QString str;
> +    //int test = 1 / str.length();
> +    //Q_UNUSED( test );
> +    abort();
>  }
>  
>  bool
> 

I like the original code, it has sentimental value :D
I might need to rephrase the comment though...

-- 
Hugo Beauzée-Luyssen
www.beauzee.fr


More information about the Vlmc-devel mailing list