Codebase list caja-eiciel / 2166da9
debian/patches: Add 1004_remove-dynamic-exception-specifications.patch. Dynamic exception specifications are deprecated since C++11 and fail in C++17. (Closes: #984006). Mike Gabriel 2 years ago
2 changed file(s) with 157 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 Description: Dynamic exception specs are deprecated since C++11 and fail with C++17 (gcc-11).
1 Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
2
3
4 --- a/src/acl_manager.hpp
5 +++ b/src/acl_manager.hpp
6 @@ -169,7 +169,7 @@
7 const static int PERM_WRITE = 1;
8 const static int PERM_EXEC = 2;
9
10 - ACLManager(const string& filename) throw (ACLManagerException);
11 + ACLManager(const string& filename);
12
13 string get_acl_access() const { return _text_acl_access; }
14 string get_acl_default() const { return _text_acl_default; }
15 --- a/src/acl_manager.cpp
16 +++ b/src/acl_manager.cpp
17 @@ -19,7 +19,7 @@
18 #include "acl_manager.hpp"
19
20
21 -ACLManager::ACLManager(const string& filename) throw (ACLManagerException)
22 +ACLManager::ACLManager(const string& filename)
23 : _filename(filename)
24 {
25 // Get first UGO permissions and info about the file
26 --- a/src/xattr_manager.cpp
27 +++ b/src/xattr_manager.cpp
28 @@ -18,7 +18,7 @@
29 */
30 #include "xattr_manager.hpp"
31
32 -XAttrManager::XAttrManager(const Glib::ustring& filename) throw (XAttrManagerException)
33 +XAttrManager::XAttrManager(const Glib::ustring& filename)
34 : _filename(filename)
35 {
36 // Check it is an ordinary file or a directory
37 @@ -41,7 +41,7 @@
38 }
39
40 // We should find better ways to test xattr support
41 -void XAttrManager::read_test() throw (XAttrManagerException)
42 +void XAttrManager::read_test()
43 {
44 Glib::ustring qualified_attr_name = "user.test";
45 int buffer_length;
46 @@ -62,7 +62,7 @@
47 delete[] buffer;
48 }
49
50 -std::vector<std::string> XAttrManager::get_xattr_list() throw (XAttrManagerException)
51 +std::vector<std::string> XAttrManager::get_xattr_list()
52 {
53 std::vector<std::string> result;
54
55 @@ -133,7 +133,7 @@
56 return result;
57 }
58
59 -std::string XAttrManager::get_attribute_value(const std::string& attr_name) throw (XAttrManagerException)
60 +std::string XAttrManager::get_attribute_value(const std::string& attr_name)
61 {
62 int size = 30;
63 char* buffer = new char[size];
64 --- a/src/xattr_manager.hpp
65 +++ b/src/xattr_manager.hpp
66 @@ -60,7 +60,7 @@
67 public:
68 typedef std::map<std::string, std::string> attributes_t;
69
70 - XAttrManager(const Glib::ustring& filename) throw (XAttrManagerException);
71 + XAttrManager(const Glib::ustring& filename);
72
73 attributes_t get_attributes_list();
74 void remove_attribute(std::string attr_name);
75 @@ -74,10 +74,10 @@
76 }
77
78 private:
79 - std::vector<std::string> get_xattr_list() throw (XAttrManagerException);
80 - std::string get_attribute_value(const std::string& attr_name) throw (XAttrManagerException);
81 + std::vector<std::string> get_xattr_list();
82 + std::string get_attribute_value(const std::string& attr_name);
83
84 - void read_test() throw (XAttrManagerException);
85 + void read_test();
86
87 Glib::ustring _filename;
88
89 --- a/src/eiciel_xattr_controller.cpp
90 +++ b/src/eiciel_xattr_controller.cpp
91 @@ -24,7 +24,7 @@
92 {
93 }
94
95 -void EicielXAttrController::open_file(const Glib::ustring& filename) throw (XAttrManagerException)
96 +void EicielXAttrController::open_file(const Glib::ustring& filename)
97 {
98 if (_xattr_manager != NULL)
99 {
100 @@ -52,22 +52,22 @@
101 }
102 }
103
104 -void EicielXAttrController::remove_attribute(const Glib::ustring& nomAtrib) throw (XAttrManagerException)
105 +void EicielXAttrController::remove_attribute(const Glib::ustring& nomAtrib)
106 {
107 _xattr_manager->remove_attribute(nomAtrib);
108 }
109
110 -void EicielXAttrController::add_attribute(const Glib::ustring& nomAtrib, const Glib::ustring& valorAtrib) throw (XAttrManagerException)
111 +void EicielXAttrController::add_attribute(const Glib::ustring& nomAtrib, const Glib::ustring& valorAtrib)
112 {
113 _xattr_manager->add_attribute(nomAtrib, valorAtrib);
114 }
115
116 -void EicielXAttrController::update_attribute_value(const Glib::ustring& nomAtrib, const Glib::ustring& valorNouAtrib) throw (XAttrManagerException)
117 +void EicielXAttrController::update_attribute_value(const Glib::ustring& nomAtrib, const Glib::ustring& valorNouAtrib)
118 {
119 _xattr_manager->add_attribute(nomAtrib, valorNouAtrib);
120 }
121
122 -void EicielXAttrController::update_attribute_name(const Glib::ustring& nomAnticAtribut, const Glib::ustring& nomNouAtribut) throw (XAttrManagerException)
123 +void EicielXAttrController::update_attribute_name(const Glib::ustring& nomAnticAtribut, const Glib::ustring& nomNouAtribut)
124 {
125 _xattr_manager->change_attribute_name(nomAnticAtribut, nomNouAtribut);
126 }
127 --- a/src/eiciel_xattr_controller.hpp
128 +++ b/src/eiciel_xattr_controller.hpp
129 @@ -32,21 +32,21 @@
130 EicielXAttrWindow* _window;
131 bool _opened_file;
132
133 - void remove_attribute(const Glib::ustring& attrib_name) throw (XAttrManagerException);
134 + void remove_attribute(const Glib::ustring& attrib_name);
135
136 void add_attribute(const Glib::ustring& attrib_name,
137 - const Glib::ustring& attrib_value) throw (XAttrManagerException);
138 + const Glib::ustring& attrib_value);
139 void update_attribute_value(const Glib::ustring& attrib_name,
140 - const Glib::ustring& attrib_new_value) throw (XAttrManagerException) ;
141 + const Glib::ustring& attrib_new_value);
142 void update_attribute_name(const Glib::ustring& old_attribute_name,
143 - const Glib::ustring& new_attribute_name) throw (XAttrManagerException);
144 + const Glib::ustring& new_attribute_name);
145
146 void check_editable();
147 public:
148 EicielXAttrController();
149 bool opened_file() { return _opened_file; };
150
151 - void open_file(const Glib::ustring& filename) throw (XAttrManagerException);
152 + void open_file(const Glib::ustring& filename);
153
154 friend class EicielXAttrWindow;
155 }
00 1001_cross.patch
11 1003_add-keywords-key-to-desktop-file.patch
2 1004_remove-dynamic-exception-specifications.patch