From 621c1201f7346eba62d75cf119ec33e7e5f327f0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 4 Sep 2017 11:57:11 +0200 Subject: [PATCH] loplugin:unnecessaryparen in connectivity Change-Id: Iee4b0caa2eb7ad6d335f55adc19e7ed78b34335c --- connectivity/source/drivers/firebird/ResultSet.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/connectivity/source/drivers/firebird/ResultSet.cxx b/connectivity/source/drivers/firebird/ResultSet.cxx index 3923ccedd1d5..859b28f48d0c 100644 --- a/connectivity/source/drivers/firebird/ResultSet.cxx +++ b/connectivity/source/drivers/firebird/ResultSet.cxx @@ -503,7 +503,7 @@ Date OResultSet::retrieveValue(const sal_Int32 nColumnIndex, const ISC_SHORT /*n { if ((m_pSqlda->sqlvar[nColumnIndex-1].sqltype & ~1) == SQL_TYPE_DATE) { - ISC_DATE aISCDate = *(reinterpret_cast(m_pSqlda->sqlvar[nColumnIndex-1].sqldata)); + ISC_DATE aISCDate = *reinterpret_cast(m_pSqlda->sqlvar[nColumnIndex-1].sqldata); struct tm aCTime; isc_decode_sql_date(&aISCDate, &aCTime); @@ -521,7 +521,7 @@ Time OResultSet::retrieveValue(const sal_Int32 nColumnIndex, const ISC_SHORT /*n { if ((m_pSqlda->sqlvar[nColumnIndex-1].sqltype & ~1) == SQL_TYPE_TIME) { - ISC_TIME aISCTime = *(reinterpret_cast(m_pSqlda->sqlvar[nColumnIndex-1].sqldata)); + ISC_TIME aISCTime = *reinterpret_cast(m_pSqlda->sqlvar[nColumnIndex-1].sqldata); struct tm aCTime; isc_decode_sql_time(&aISCTime, &aCTime); @@ -541,7 +541,7 @@ DateTime OResultSet::retrieveValue(const sal_Int32 nColumnIndex, const ISC_SHORT { if ((m_pSqlda->sqlvar[nColumnIndex-1].sqltype & ~1) == SQL_TIMESTAMP) { - ISC_TIMESTAMP aISCTimestamp = *(reinterpret_cast(m_pSqlda->sqlvar[nColumnIndex-1].sqldata)); + ISC_TIMESTAMP aISCTimestamp = *reinterpret_cast(m_pSqlda->sqlvar[nColumnIndex-1].sqldata); struct tm aCTime; isc_decode_timestamp(&aISCTimestamp, &aCTime); @@ -577,7 +577,7 @@ OUString OResultSet::retrieveValue(const sal_Int32 nColumnIndex, const ISC_SHORT { // First 2 bytes are a short containing the length of the string // No idea if sqllen is still valid here? - sal_uInt16 aLength = *(reinterpret_cast(m_pSqlda->sqlvar[nColumnIndex-1].sqldata)); + sal_uInt16 aLength = *reinterpret_cast(m_pSqlda->sqlvar[nColumnIndex-1].sqldata); return OUString(m_pSqlda->sqlvar[nColumnIndex-1].sqldata + 2, aLength, RTL_TEXTENCODING_UTF8);