]> jfr.im git - irc/UndernetIRC/gnuworld.git/commitdiff
Remove pre-C++11 exception specifications
authorMichael Poole <redacted>
Mon, 31 May 2021 00:39:37 +0000 (20:39 -0400)
committerMichael Poole <redacted>
Mon, 31 May 2021 00:39:37 +0000 (20:39 -0400)
These had no real effect even under C++98, and are deprecated now.

db/dbHandle.h
db/pgsqlDB.cc
db/pgsqlDB.h

index 20eb252144fac85875b1fba6ef88299a9a86d144..16db32b397af238dc85e9f4fe2f71b3728975eea 100644 (file)
@@ -27,7 +27,7 @@ public:
                const unsigned short int dbPort,
                const std::string& dbName,
                const std::string& userName,
-               const std::string& password ) throw( std::exception )
+               const std::string& password )
 #ifdef HAVE_PGSQL
        : pgsqlDB( dbHost,
                dbPort,
@@ -36,7 +36,7 @@ public:
                password )
 #endif
        {}
-       dbHandle( const std::string& connectInfo ) throw( std::exception )
+       dbHandle( const std::string& connectInfo )
 #ifdef HAVE_PGSQL
        : pgsqlDB( connectInfo )
 #endif
index b65a9533108e2f42f5fb817f1b59cde796f91318..2b008efd2ef83e38a47df985ea822cb3eb843c1f 100644 (file)
@@ -45,7 +45,7 @@ pgsqlDB::pgsqlDB( const string& dbHost,
        const unsigned short int dbPort,
        const string& dbName,
        const string& userName,
-       const string& password ) throw( std::exception )
+       const string& password )
 : gnuworldDB( dbHost, dbPort, dbName, userName, password ),
   theDB( 0 ),
   lastResult( 0 )
@@ -82,7 +82,7 @@ if( !isConnected() )
        }
 }
 
-pgsqlDB::pgsqlDB( const string& connectInfo ) throw( std::exception )
+pgsqlDB::pgsqlDB( const string& connectInfo )
 {
 // TODO
 // Allow exception to be thrown
index d0511d244b8a260940e484d3a0f26f3b8e9f2bf4..ad3e08ed252f3a2bfb9a1c2c34b9c38ce07a5e84 100644 (file)
@@ -45,8 +45,8 @@ public:
                const unsigned short int dbPort,
                const std::string& dbName,
                const std::string& userName,
-               const std::string& password ) throw( std::exception ) ;
-       pgsqlDB( const std::string& connectInfo ) throw( std::exception ) ;
+               const std::string& password );
+       pgsqlDB( const std::string& connectInfo );
        virtual ~pgsqlDB() ;
 
        virtual bool            Exec( const std::string&, bool = false ) ;