[niepce] fwk: remove deprecated throw specifier
- From: Hubert Figuière <hub src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [niepce] fwk: remove deprecated throw specifier
- Date: Mon, 31 Jul 2017 02:24:52 +0000 (UTC)
commit 8541ac5b5a893371eacb6b66bc5b337acfcaa73a
Author: Hubert Figuière <hub figuiere net>
Date: Tue Jul 11 19:43:26 2017 -0400
fwk: remove deprecated throw specifier
src/fwk/base/geometry.cpp | 5 ++---
src/fwk/base/geometry.hpp | 5 ++---
2 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/fwk/base/geometry.cpp b/src/fwk/base/geometry.cpp
index 722caf6..e85d865 100644
--- a/src/fwk/base/geometry.cpp
+++ b/src/fwk/base/geometry.cpp
@@ -1,7 +1,7 @@
/*
* niepce - fwk/base/geometry.cpp
*
- * Copyright (C) 2007-2013 Hubert Figuiere
+ * Copyright (C) 2007-2017 Hubert Figuiere
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -45,8 +45,7 @@ Rect::Rect(int _x, int _y, int _w, int _h)
}
-Rect::Rect(const std::string & s)
- throw(std::bad_cast)
+Rect::Rect(const std::string & s) noexcept(false)
{
std::vector< std::string > v;
v.reserve(4);
diff --git a/src/fwk/base/geometry.hpp b/src/fwk/base/geometry.hpp
index 2011663..e430b0f 100644
--- a/src/fwk/base/geometry.hpp
+++ b/src/fwk/base/geometry.hpp
@@ -1,7 +1,7 @@
/*
* niepce - fwk/base/geometry.h
*
- * Copyright (C) 2007-2013 Hubert Figuiere
+ * Copyright (C) 2007-2017 Hubert Figuiere
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -49,8 +49,7 @@ public:
* @throw a std::bad_cast exception if there is not 4 element
* or if one of them is not an int.
*/
- Rect(const std::string & s)
- throw(std::bad_cast);
+ Rect(const std::string & s) noexcept(false);
int x() const
{ return _r[X]; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]