From 2339a5bd5088f20aad8746821ea2dcc656edb8ac Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 27 Apr 2015 15:28:29 +0200 Subject: More loplugin:simplifybool Change-Id: Ic26c9e044b0e2225db8e218f39409338a69e7047 --- mysqlc/source/mysqlc_connection.cxx | 2 +- mysqlc/source/mysqlc_databasemetadata.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'mysqlc/source') 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; } -- cgit