cdc578d
From 904949c9026cb772dc93fbe0947a252ef47127f4 Mon Sep 17 00:00:00 2001
cdc578d
From: Tom Tromey <tom@tromey.com>
cdc578d
Date: Wed, 10 Jun 2020 20:38:27 -0600
cdc578d
Subject: Remove "throw" specifications
cdc578d
cdc578d
C++ throw specifications were deprecated in C++11.
cdc578d
This patch removes them from the library.
cdc578d
---
cdc578d
 ChangeLog                 | 5 +++++
cdc578d
 lib/srchilite/fileutil.cc | 2 +-
cdc578d
 lib/srchilite/fileutil.h  | 2 +-
cdc578d
 3 files changed, 7 insertions(+), 2 deletions(-)
cdc578d
cdc578d
diff --git a/lib/srchilite/fileutil.cc b/lib/srchilite/fileutil.cc
cdc578d
index 59a6d64..963178c 100644
cdc578d
--- a/lib/srchilite/fileutil.cc
cdc578d
+++ b/lib/srchilite/fileutil.cc
cdc578d
@@ -48,7 +48,7 @@ void set_file_util_verbose(bool b) {
cdc578d
 // FIXME avoid using a global variable
cdc578d
 std::string start_path;
cdc578d
 
cdc578d
-string readFile(const string &fileName) throw (IOException) {
cdc578d
+string readFile(const string &fileName) {
cdc578d
     ifstream file(fileName.c_str());
cdc578d
 
cdc578d
     if (!file.is_open()) {
cdc578d
diff --git a/lib/srchilite/fileutil.h b/lib/srchilite/fileutil.h
cdc578d
index 7335a9b..042eb56 100644
cdc578d
--- a/lib/srchilite/fileutil.h
cdc578d
+++ b/lib/srchilite/fileutil.h
cdc578d
@@ -27,7 +27,7 @@ extern std::string start_path;
cdc578d
  * @return the contents of the file
cdc578d
  * @throw IOException
cdc578d
  */
cdc578d
-string readFile(const string &fileName) throw (IOException);
cdc578d
+string readFile(const string &fileName);
cdc578d
 
cdc578d
 //char *read_file(const string &fileName);
cdc578d
 
cdc578d
-- 
cdc578d
cgit v1.1
cdc578d