diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-02-11 09:02:13 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-02-12 09:04:54 +0100 |
commit | cfbd830e9c4d1877989bc4ad93109551a0a4b0b7 (patch) | |
tree | a050319e1167c816ac284894de0c2d4a535ee23a /xmlsecurity | |
parent | 294b9a415929f25982373e91cba9254686074b19 (diff) |
tdf#120703 PVS: remove redundant static casts
V572 It is odd that the object which was created using 'new' operator
is immediately cast to another type.
Change-Id: I5fee1c4bebd1972fbb5e43da37149d4e2ff6ce0d
Reviewed-on: https://gerrit.libreoffice.org/67664
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/dialogs/certificateviewer.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmlsecurity/source/dialogs/certificateviewer.cxx b/xmlsecurity/source/dialogs/certificateviewer.cxx index df5d6b0f68c1..0731a01cf0c1 100644 --- a/xmlsecurity/source/dialogs/certificateviewer.cxx +++ b/xmlsecurity/source/dialogs/certificateviewer.cxx @@ -229,7 +229,7 @@ void CertificateViewerDetailsTP::InsertElement( const OUString& _rField, const O { SvTreeListEntry* pEntry = m_pElementsLB->InsertEntry( _rField ); m_pElementsLB->SetEntryText( _rValue, pEntry, 1 ); - pEntry->SetUserData( static_cast<void*>(new Details_UserDatat( _rDetails, _bFixedWidthFont )) ); + pEntry->SetUserData(new Details_UserDatat(_rDetails, _bFixedWidthFont)); } CertificateViewerDetailsTP::CertificateViewerDetailsTP( vcl::Window* _pParent, CertificateViewer* _pDlg ) @@ -500,7 +500,7 @@ SvTreeListEntry* CertificateViewerCertPathTP::InsertCert( { Image aImage = bValid ? maCertImage : maCertNotValidatedImage; SvTreeListEntry* pEntry = mpCertPathLB->InsertEntry( _rName, aImage, aImage, _pParent ); - pEntry->SetUserData( static_cast<void*>(new CertPath_UserData( rxCert, bValid )) ); + pEntry->SetUserData(new CertPath_UserData(rxCert, bValid)); return pEntry; } |