[glom] Throw the same exception instead of a copy.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Throw the same exception instead of a copy.
- Date: Sun, 1 Nov 2015 12:58:06 +0000 (UTC)
commit 5312e454cb0043a9adbe495fb465686ca2d0a848
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Oct 30 14:17:44 2015 +0100
Throw the same exception instead of a copy.
Found by cppcheck.
glom/libglom/connectionpool_backends/mysql_self.cc | 2 +-
.../connectionpool_backends/postgres_self.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glom/libglom/connectionpool_backends/mysql_self.cc
b/glom/libglom/connectionpool_backends/mysql_self.cc
index c63c0e2..2c79caf 100644
--- a/glom/libglom/connectionpool_backends/mysql_self.cc
+++ b/glom/libglom/connectionpool_backends/mysql_self.cc
@@ -632,7 +632,7 @@ Glib::RefPtr<Gnome::Gda::Connection> MySQLSelfHosted::connect(const Glib::ustrin
}
else
{
- throw ex;
+ throw;
}
}
diff --git a/glom/libglom/connectionpool_backends/postgres_self.cc
b/glom/libglom/connectionpool_backends/postgres_self.cc
index 14e066c..a188de9 100644
--- a/glom/libglom/connectionpool_backends/postgres_self.cc
+++ b/glom/libglom/connectionpool_backends/postgres_self.cc
@@ -508,7 +508,7 @@ Glib::RefPtr<Gnome::Gda::Connection> PostgresSelfHosted::connect(const Glib::ust
}
else
{
- throw ex;
+ throw;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]