summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2022-05-25 12:36:35 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2022-05-25 12:43:44 +0200
commitfc973c5ec32dc10256c81e9f199cdf6e7131b155 (patch)
tree28f905ccc93560dd50e5c8bfdfb8101341695477 /src
parentdbb8f36075d63f0b5cb7626da2252d1df423f013 (diff)
downloadmanaserv-fc973c5ec32dc10256c81e9f199cdf6e7131b155.tar.gz
manaserv-fc973c5ec32dc10256c81e9f199cdf6e7131b155.tar.bz2
manaserv-fc973c5ec32dc10256c81e9f199cdf6e7131b155.tar.xz
manaserv-fc973c5ec32dc10256c81e9f199cdf6e7131b155.zip
Fixed compiler warnings about dynamic exception specifications
"warning: dynamic exception specifications are deprecated in C++11" Fortunately, it's effectively the same thing as not mentioning anything at all. The fact that these functions can throw this exception is already in their documentation.
Diffstat (limited to 'src')
-rw-r--r--src/dal/dataprovider.h9
-rw-r--r--src/dal/sqlitedataprovider.cpp3
-rw-r--r--src/dal/sqlitedataprovider.h9
3 files changed, 6 insertions, 15 deletions
diff --git a/src/dal/dataprovider.h b/src/dal/dataprovider.h
index 83d1c8c1..b066ea50 100644
--- a/src/dal/dataprovider.h
+++ b/src/dal/dataprovider.h
@@ -137,24 +137,21 @@ class DataProvider
*
* @exception std::runtime_error if a transaction is still open
*/
- virtual void beginTransaction()
- throw (std::runtime_error) = 0;
+ virtual void beginTransaction() = 0;
/**
* Commits a transaction.
*
* @exception std::runtime_error if no connection is currently open.
*/
- virtual void commitTransaction()
- throw (std::runtime_error) = 0;
+ virtual void commitTransaction() = 0;
/**
* Rollback a transaction.
*
* @exception std::runtime_error if no connection is currently open.
*/
- virtual void rollbackTransaction()
- throw (std::runtime_error) = 0;
+ virtual void rollbackTransaction() = 0;
/**
* Returns whether the data provider is currently in a transaction.
diff --git a/src/dal/sqlitedataprovider.cpp b/src/dal/sqlitedataprovider.cpp
index 73df8f76..d83dc274 100644
--- a/src/dal/sqlitedataprovider.cpp
+++ b/src/dal/sqlitedataprovider.cpp
@@ -204,7 +204,6 @@ void SqLiteDataProvider::disconnect()
}
void SqLiteDataProvider::beginTransaction()
- throw (std::runtime_error)
{
if (!mIsConnected)
{
@@ -238,7 +237,6 @@ void SqLiteDataProvider::beginTransaction()
}
void SqLiteDataProvider::commitTransaction()
- throw (std::runtime_error)
{
if (!mIsConnected)
{
@@ -272,7 +270,6 @@ void SqLiteDataProvider::commitTransaction()
}
void SqLiteDataProvider::rollbackTransaction()
- throw (std::runtime_error)
{
if (!mIsConnected)
{
diff --git a/src/dal/sqlitedataprovider.h b/src/dal/sqlitedataprovider.h
index 107290b2..c5966299 100644
--- a/src/dal/sqlitedataprovider.h
+++ b/src/dal/sqlitedataprovider.h
@@ -82,24 +82,21 @@ class SqLiteDataProvider: public DataProvider
*
* @exception std::runtime_error if a transaction is still open
*/
- void beginTransaction()
- throw (std::runtime_error);
+ void beginTransaction();
/**
* Commits a transaction.
*
* @exception std::runtime_error if no connection is currently open.
*/
- void commitTransaction()
- throw (std::runtime_error);
+ void commitTransaction();
/**
* Rollback a transaction.
*
* @exception std::runtime_error if no connection is currently open.
*/
- void rollbackTransaction()
- throw (std::runtime_error);
+ void rollbackTransaction();
/**
* Returns wheter the connection has a open transaction or is in auto-