Skip to content

Commit 2b8f888

Browse files
committed
videoio: remove throw lists since they are deprecated in cxx11 (and gcc7 produces a warning)
1 parent 316fb26 commit 2b8f888

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

modules/videoio/src/cap_gphoto2.cpp

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,12 @@ class DigitalCameraCapture: public IVideoCapture
184184
bool & output) const;
185185

186186
// Widgets
187-
void reloadConfig() throw (GPhoto2Exception);
187+
void reloadConfig();
188188
CameraWidget * getWidget(int widgetId) const;
189189
CameraWidget * findWidgetByName(const char * name) const;
190190

191191
// Loading
192-
void readFrameFromFile(CameraFile * file, OutputArray outputFrame) throw (GPhoto2Exception);
192+
void readFrameFromFile(CameraFile * file, OutputArray outputFrame);
193193

194194
// Context feedback
195195
friend void ctxErrorFunc(GPContext *, const char *, void *);
@@ -231,10 +231,8 @@ class DigitalCameraCapture: public IVideoCapture
231231

232232
// Widgets
233233
int noOfWidgets;
234-
int widgetDescription(std::ostream &os, CameraWidget * widget) const
235-
throw (GPhoto2Exception);
236-
int collectWidgets(std::ostream &os, CameraWidget * widget)
237-
throw (GPhoto2Exception);
234+
int widgetDescription(std::ostream &os, CameraWidget * widget) const;
235+
int collectWidgets(std::ostream &os, CameraWidget * widget);
238236

239237
// Messages / debug
240238
mutable std::ostringstream msgsBuffer; // CV_CAP_PROP_GPHOTO2_FLUSH_MSGS
@@ -929,7 +927,7 @@ int DigitalCameraCapture::findDevice(const char * deviceName) const
929927
/**
930928
* Load device settings.
931929
*/
932-
void DigitalCameraCapture::reloadConfig() throw (GPhoto2Exception)
930+
void DigitalCameraCapture::reloadConfig()
933931
{
934932
std::ostringstream widgetInfoListStream;
935933

@@ -999,7 +997,7 @@ CameraWidget * DigitalCameraCapture::findWidgetByName(
999997
* @FUTURE: RAW format reader.
1000998
*/
1001999
void DigitalCameraCapture::readFrameFromFile(CameraFile * file, OutputArray outputFrame)
1002-
throw (GPhoto2Exception)
1000+
10031001
{
10041002
// FUTURE: OpenCV cannot read RAW files right now.
10051003
const char * data;
@@ -1022,7 +1020,7 @@ void DigitalCameraCapture::readFrameFromFile(CameraFile * file, OutputArray outp
10221020
* then IDs won't be the same)
10231021
*/
10241022
int DigitalCameraCapture::widgetDescription(std::ostream &os,
1025-
CameraWidget * widget) const throw (GPhoto2Exception)
1023+
CameraWidget * widget) const
10261024
{
10271025
const char * label, *name, *info;
10281026
int id, readonly;
@@ -1137,7 +1135,7 @@ int DigitalCameraCapture::widgetDescription(std::ostream &os,
11371135
* @return maximum of widget ID
11381136
*/
11391137
int DigitalCameraCapture::collectWidgets(std::ostream & os,
1140-
CameraWidget * widget) throw (GPhoto2Exception)
1138+
CameraWidget * widget)
11411139
{
11421140
int id = widgetDescription(os, widget);
11431141
os << lineDelimiter;

0 commit comments

Comments
 (0)