diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-13 12:35:57 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-13 12:36:36 +0200 |
commit | 373a9b9bb62c50072c06e28fd932afb6e71ba687 (patch) | |
tree | dc6b72474110a4311d7ab57d42dc4bda5c221e4b /mysqlc | |
parent | 3c4fd27392bd153e043eeb60907eeded48c60cf2 (diff) |
loplugin:redundantcast: redundant const_cast followed by implicit upcast
Change-Id: I58297ba336d96358eb0683684bbd763870ef56cb
Diffstat (limited to 'mysqlc')
-rw-r--r-- | mysqlc/source/mysqlc_resultset.cxx | 2 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_statement.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mysqlc/source/mysqlc_resultset.cxx b/mysqlc/source/mysqlc_resultset.cxx index ec750010299d..2ef646c906f0 100644 --- a/mysqlc/source/mysqlc_resultset.cxx +++ b/mysqlc/source/mysqlc_resultset.cxx @@ -1120,7 +1120,7 @@ IPropertyArrayHelper * OResultSet::createArrayHelper() const IPropertyArrayHelper & OResultSet::getInfoHelper() { OSL_TRACE("OResultSet::getInfoHelper"); - return *const_cast<OResultSet*>(this)->getArrayHelper(); + return *getArrayHelper(); } sal_Bool OResultSet::convertFastPropertyValue(Any & /* rConvertedValue */, diff --git a/mysqlc/source/mysqlc_statement.cxx b/mysqlc/source/mysqlc_statement.cxx index 9bd069ca5dcf..209d31a2f17c 100644 --- a/mysqlc/source/mysqlc_statement.cxx +++ b/mysqlc/source/mysqlc_statement.cxx @@ -327,7 +327,7 @@ void SAL_CALL OCommonStatement::clearWarnings() ::cppu::IPropertyArrayHelper & OCommonStatement::getInfoHelper() { OSL_TRACE("OCommonStatement::getInfoHelper"); - return *const_cast<OCommonStatement*>(this)->getArrayHelper(); + return *getArrayHelper(); } sal_Bool OCommonStatement::convertFastPropertyValue( |