summaryrefslogtreecommitdiff
path: root/vcl/win/app
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/win/app')
-rw-r--r--vcl/win/app/salshl.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/vcl/win/app/salshl.cxx b/vcl/win/app/salshl.cxx
index 3c3c7103aa53..3f8e5f5339a3 100644
--- a/vcl/win/app/salshl.cxx
+++ b/vcl/win/app/salshl.cxx
@@ -102,12 +102,8 @@ bool ImplLoadSalIcon( int nId, HICON& rIcon, HICON& rSmallIcon )
if( rIcon )
{
// add to icon cache
- pSalIcon = new SalIcon();
- pSalIcon->nId = nId;
- pSalIcon->hIcon = rIcon;
- pSalIcon->hSmallIcon = rSmallIcon;
- pSalIcon->pNext = pSalData->mpFirstIcon;
- pSalData->mpFirstIcon = pSalIcon;
+ pSalData->mpFirstIcon = new SalIcon{
+ nId, rIcon, rSmallIcon, pSalData->mpFirstIcon};
}
return (rSmallIcon != nullptr);