File fix-gcc8.patch of Package zbar

--- a/qt/QZBar.cpp	2018-04-10 16:20:27.946677757 +0200
+++ b/qt/QZBar.cpp	2018-04-10 16:17:21.839009342 +0200
@@ -183,7 +183,7 @@
         if(thread)
             thread->window.redraw();
     }
-    catch(Exception) {
+    catch(Exception *) {
         // sometimes Qt attempts to paint the widget before it's parented(?)
         // just ignore this (can't throw from event anyway)
     }
@@ -196,7 +196,7 @@
         if(thread)
             thread->window.resize(size.rwidth(), size.rheight());
     }
-    catch(Exception) { /* ignore */ }
+    catch(Exception *) { /* ignore */ }
 }
 
 void QZBar::changeEvent(QEvent *event)
@@ -206,7 +206,7 @@
         if(event->type() == QEvent::ParentChange)
             thread->window.attach(QX11Info::display(), winId());
     }
-    catch(Exception) { /* ignore (FIXME do something w/error) */ }
+    catch(Exception *) { /* ignore (FIXME do something w/error) */ }
 }
 
 void QZBar::attach ()
@@ -222,7 +222,7 @@
         if(_videoEnabled)
             thread->pushEvent(new QZBarThread::VideoDeviceEvent(_videoDevice));
     }
-    catch(Exception) { /* ignore (FIXME do something w/error) */ }
+    catch(Exception *) { /* ignore (FIXME do something w/error) */ }
 }
 
 void QZBar::showEvent (QShowEvent *event)
openSUSE Build Service is sponsored by