File: exception-decls.patch

package info (click to toggle)
htmlcxx 0.87-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,404 kB
  • sloc: sh: 4,380; cpp: 4,354; yacc: 526; ansic: 205; lex: 159; makefile: 47; perl: 27
file content (27 lines) | stat: -rw-r--r-- 912 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Remove exception declarations
Author: Stephen Kitt <skitt@debian.org>

These were deprecated in C++11 and are no longer valid in C++17.

--- a/html/CharsetConverter.cc
+++ b/html/CharsetConverter.cc
@@ -7,7 +7,7 @@
 using namespace std;
 using namespace htmlcxx;
 
-CharsetConverter::CharsetConverter(const string &from, const string &to) throw (Exception)
+CharsetConverter::CharsetConverter(const string &from, const string &to)
 {
 	mIconvDescriptor = iconv_open(to.c_str(), from.c_str());
 	if (mIconvDescriptor == (iconv_t)(-1))
--- a/html/CharsetConverter.h
+++ b/html/CharsetConverter.h
@@ -17,7 +17,7 @@
 						: std::runtime_error(arg) {}
 			};
 			
-			CharsetConverter(const std::string &from, const std::string &to) throw (Exception);
+			CharsetConverter(const std::string &from, const std::string &to);
 			~CharsetConverter();
 			
 			std::string convert(const std::string &input);