diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-27 15:28:29 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-27 15:30:59 +0200 |
commit | 2339a5bd5088f20aad8746821ea2dcc656edb8ac (patch) | |
tree | 04330088ca93edfffccd5ebade12e48d1d916ba0 /mysqlc/source | |
parent | de6d87c1ba18ecf20ec9ea5a405030e626ab544a (diff) |
More loplugin:simplifybool
Change-Id: Ic26c9e044b0e2225db8e218f39409338a69e7047
Diffstat (limited to 'mysqlc/source')
-rw-r--r-- | mysqlc/source/mysqlc_connection.cxx | 2 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_databasemetadata.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mysqlc/source/mysqlc_connection.cxx b/mysqlc/source/mysqlc_connection.cxx index 6cd26b123770..d26558bae931 100644 --- a/mysqlc/source/mysqlc_connection.cxx +++ b/mysqlc/source/mysqlc_connection.cxx @@ -324,7 +324,7 @@ sal_Bool SAL_CALL OConnection::getAutoCommit() bool autoCommit = false; try { - autoCommit = m_settings.cppConnection->getAutoCommit() == true; + autoCommit = m_settings.cppConnection->getAutoCommit(); } catch (const sql::SQLException & e) { mysqlc_sdbc_driver::translateAndThrow(e, *this, getConnectionEncoding()); } diff --git a/mysqlc/source/mysqlc_databasemetadata.cxx b/mysqlc/source/mysqlc_databasemetadata.cxx index e975611ddc63..b35023ea9852 100644 --- a/mysqlc/source/mysqlc_databasemetadata.cxx +++ b/mysqlc/source/mysqlc_databasemetadata.cxx @@ -373,7 +373,7 @@ rtl::OUString SAL_CALL ODatabaseMetaData::getCatalogTerm() rtl::OUString SAL_CALL ODatabaseMetaData::getIdentifierQuoteString() throw(SQLException, RuntimeException, std::exception) { - if (identifier_quote_string_set == false) { + if (!identifier_quote_string_set) { identifier_quote_string = impl_getStringMetaData("getIdentifierQuoteString", &sql::DatabaseMetaData::getIdentifierQuoteString); identifier_quote_string_set = true; } |