From a908d607d9b6b8263032c84c9981e51e8fa4631e Mon Sep 17 00:00:00 2001 From: James Miller Date: Wed, 9 Jul 2014 12:13:17 +1200 Subject: [PATCH] Remove usage of old runtime option --- pgsql.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pgsql.cpp b/pgsql.cpp index 8bcf4bb..d0e8e97 100644 --- a/pgsql.cpp +++ b/pgsql.cpp @@ -206,9 +206,7 @@ PGSQL *PGSQL::Get(const Variant& conn_id) { return nullptr; } - PGSQL *pgsql = conn_id.toResource().getTyped - (!RuntimeOption::ThrowBadTypeExceptions, - !RuntimeOption::ThrowBadTypeExceptions); + PGSQL *pgsql = conn_id.toResource().getTyped(true, true); return pgsql; } @@ -304,9 +302,7 @@ PGSQLResult *PGSQLResult::Get(const Variant& result) { return nullptr; } - auto *res = result.toResource().getTyped - (!RuntimeOption::ThrowBadTypeExceptions, - !RuntimeOption::ThrowBadTypeExceptions); + auto *res = result.toResource().getTyped(true, true); return res; }