From 22401181774dfb3882e7ad0335f1267d7885ff48 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 23 Apr 2015 18:30:45 +0200 Subject: Improved loplugin:literaltoboolconversion looking into cond. exprs. ...automatic rewriter fixes Change-Id: I6b04ca80f08f8a71ff94e309fd52f44d736751ee --- mysqlc/source/mysqlc_statement.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mysqlc/source/mysqlc_statement.cxx') diff --git a/mysqlc/source/mysqlc_statement.cxx b/mysqlc/source/mysqlc_statement.cxx index 209d31a2f17c..5590acfd41ae 100644 --- a/mysqlc/source/mysqlc_statement.cxx +++ b/mysqlc/source/mysqlc_statement.cxx @@ -158,7 +158,7 @@ sal_Bool SAL_CALL OCommonStatement::execute(const rtl::OUString& sql) bool success = false; try { - success = cppStatement->execute(rtl::OUStringToOString(sSqlStatement, m_pConnection->getConnectionSettings().encoding).getStr())? sal_True:sal_False; + success = cppStatement->execute(rtl::OUStringToOString(sSqlStatement, m_pConnection->getConnectionSettings().encoding).getStr())? true:false; } catch (const sql::SQLException &e) { mysqlc_sdbc_driver::translateAndThrow(e, *this, m_pConnection->getConnectionEncoding()); } -- cgit