summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-02 09:37:50 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-06-02 09:37:50 +0200
commit7d81894613e8697f9291fb8c346b444cf024a786 (patch)
tree14e7728416268503571b8a910296b1e3700d60b3 /dbaccess
parent7255c15cf5dd17701542c3769e948ffc089212d2 (diff)
Improved loplugin:redundantcast static_cast handling: dbaccess
Change-Id: I4037cff3213f9885353ba0f5a810ceba68cb17b5
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/dataaccess/ContentHelper.cxx3
-rw-r--r--dbaccess/source/ui/browser/unodatbr.cxx10
-rw-r--r--dbaccess/source/ui/dlg/tablespage.cxx4
3 files changed, 8 insertions, 9 deletions
diff --git a/dbaccess/source/core/dataaccess/ContentHelper.cxx b/dbaccess/source/core/dataaccess/ContentHelper.cxx
index 20b25d46e05d..58b6bb46640e 100644
--- a/dbaccess/source/core/dataaccess/ContentHelper.cxx
+++ b/dbaccess/source/core/dataaccess/ContentHelper.cxx
@@ -537,8 +537,7 @@ void OContentHelper::notifyPropertiesChange( const Sequence< PropertyChangeEvent
PropertiesEventListenerMap::const_iterator it = aListeners.begin();
while ( !aListeners.empty() )
{
- XPropertiesChangeListener* pListener =
- static_cast< XPropertiesChangeListener * >( (*it).first );
+ XPropertiesChangeListener* pListener = (*it).first;
PropertyEventSequence* pSeq = (*it).second;
// Remove current element.
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx
index 46f0fd82c972..c727bdb0bba5 100644
--- a/dbaccess/source/ui/browser/unodatbr.cxx
+++ b/dbaccess/source/ui/browser/unodatbr.cxx
@@ -730,7 +730,7 @@ bool SbaTableQueryBrowser::InitializeGridModel(const Reference< css::form::XForm
if ( xSupplier.is() )
aInitialValues.push_back( NamedValue( "FormatsSupplier", makeAny( xSupplier ) ) );
aInitialValues.push_back( NamedValue( "TreatAsNumber", makeAny( bFormattedIsNumeric ) ) );
- aCopyProperties.push_back( static_cast<const OUString&>(PROPERTY_FORMATKEY) );
+ aCopyProperties.push_back( PROPERTY_FORMATKEY );
break;
}
@@ -763,8 +763,8 @@ bool SbaTableQueryBrowser::InitializeGridModel(const Reference< css::form::XForm
aInitialValues.push_back( NamedValue( sDefaultProperty, aDefault ) );
// transfer properties from the definition to the UNO-model :
- aCopyProperties.push_back( static_cast<const OUString&>(PROPERTY_HIDDEN) );
- aCopyProperties.push_back( static_cast<const OUString&>(PROPERTY_WIDTH) );
+ aCopyProperties.push_back( PROPERTY_HIDDEN );
+ aCopyProperties.push_back( PROPERTY_WIDTH );
// help text to display for the column
Any aDescription;
@@ -3343,8 +3343,8 @@ bool SbaTableQueryBrowser::ensureConnection( SvTreeListEntry* _pDSEntry, void* p
IMPL_LINK( SbaTableQueryBrowser, OnTreeEntryCompare, const SvSortData&, _rSortData, sal_Int32 )
{
- const SvTreeListEntry* pLHS = static_cast<const SvTreeListEntry*>(_rSortData.pLeft);
- const SvTreeListEntry* pRHS = static_cast<const SvTreeListEntry*>(_rSortData.pRight);
+ const SvTreeListEntry* pLHS = _rSortData.pLeft;
+ const SvTreeListEntry* pRHS = _rSortData.pRight;
OSL_ENSURE(pLHS && pRHS, "SbaTableQueryBrowser::OnTreeEntryCompare: invalid tree entries!");
// we want the table entry and the end so we have to do a check
diff --git a/dbaccess/source/ui/dlg/tablespage.cxx b/dbaccess/source/ui/dlg/tablespage.cxx
index 9139bef7c531..c6b45907751f 100644
--- a/dbaccess/source/ui/dlg/tablespage.cxx
+++ b/dbaccess/source/ui/dlg/tablespage.cxx
@@ -406,8 +406,8 @@ namespace dbaui
}
IMPL_LINK( OTableSubscriptionPage, OnTreeEntryCompare, const SvSortData&, _rSortData, sal_Int32 )
{
- const SvTreeListEntry* pLHS = static_cast<const SvTreeListEntry*>(_rSortData.pLeft);
- const SvTreeListEntry* pRHS = static_cast<const SvTreeListEntry*>(_rSortData.pRight);
+ const SvTreeListEntry* pLHS = _rSortData.pLeft;
+ const SvTreeListEntry* pRHS = _rSortData.pRight;
OSL_ENSURE(pLHS && pRHS, "SbaTableQueryBrowser::OnTreeEntryCompare: invalid tree entries!");
const SvLBoxString* pLeftTextItem = static_cast<const SvLBoxString*>(pLHS->GetFirstItem(SvLBoxItemType::String));