aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql/database.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/mysql/database.cxx')
-rw-r--r--odb/mysql/database.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/odb/mysql/database.cxx b/odb/mysql/database.cxx
index 03401d9..e7137bb 100644
--- a/odb/mysql/database.cxx
+++ b/odb/mysql/database.cxx
@@ -46,7 +46,7 @@ namespace odb
client_flags_ (client_flags),
factory_ (factory.transfer ())
{
- if (factory_.get () == 0)
+ if (!factory_)
factory_.reset (new connection_pool_factory ());
factory_->database (*this);
@@ -74,7 +74,7 @@ namespace odb
client_flags_ (client_flags),
factory_ (factory.transfer ())
{
- if (factory_.get () == 0)
+ if (!factory_)
factory_.reset (new connection_pool_factory ());
factory_->database (*this);
@@ -102,7 +102,7 @@ namespace odb
client_flags_ (client_flags),
factory_ (factory.transfer ())
{
- if (factory_.get () == 0)
+ if (!factory_)
factory_.reset (new connection_pool_factory ());
factory_->database (*this);
@@ -130,7 +130,7 @@ namespace odb
client_flags_ (client_flags),
factory_ (factory.transfer ())
{
- if (factory_.get () == 0)
+ if (!factory_)
factory_.reset (new connection_pool_factory ());
factory_->database (*this);
@@ -158,7 +158,7 @@ namespace odb
client_flags_ (client_flags),
factory_ (factory.transfer ())
{
- if (factory_.get () == 0)
+ if (!factory_)
factory_.reset (new connection_pool_factory ());
factory_->database (*this);
@@ -209,7 +209,7 @@ namespace odb
throw cli_exception (ostr.str ());
}
- if (factory_.get () == 0)
+ if (!factory_)
factory_.reset (new connection_pool_factory ());
factory_->database (*this);