Kaydet (Commit) 3bb49555 authored tarafından Mike Kaganski's avatar Mike Kaganski

tdf#120703 PVS: V519 variable is assigned values twice successively

V519 The 'hResult' variable is assigned values twice successively.
     Perhaps this is a mistake. Check lines: 1097, 1098.

Change-Id: Ib6f9c3467578ebc68b3a15f8dbea4054af45707d
Reviewed-on: https://gerrit.libreoffice.org/62411Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
Tested-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst bb702103
......@@ -1091,11 +1091,9 @@ TFileDialogCustomize VistaFilePickerImpl::impl_getCustomizeInterface()
static void lcl_removeControlItemsWorkaround(const TFileDialogCustomize& iCustom ,
::sal_Int16 nControlId)
{
::sal_Int32 i = 0;
HRESULT hResult;
hResult = iCustom->SetSelectedControlItem(nControlId, 1000);
hResult = S_OK;
(void)iCustom->SetSelectedControlItem(nControlId, 1000); // Don't care if this fails (useless?)
DWORD i = 0;
HRESULT hResult = S_OK;
while ( SUCCEEDED(hResult) )
hResult = iCustom->RemoveControlItem(nControlId, i++);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment