summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/win/app/salshl.cxx8
-rw-r--r--vcl/win/gdi/winlayout.cxx4
2 files changed, 4 insertions, 8 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);
diff --git a/vcl/win/gdi/winlayout.cxx b/vcl/win/gdi/winlayout.cxx
index a8d71fc98b2f..b41ad598acbb 100644
--- a/vcl/win/gdi/winlayout.cxx
+++ b/vcl/win/gdi/winlayout.cxx
@@ -249,13 +249,13 @@ TextOutRenderer & TextOutRenderer::get(bool bUseDWrite)
{
static std::unique_ptr<TextOutRenderer> _impl(D2DWriteTextOutRenderer::InitModules()
? static_cast<TextOutRenderer*>(new D2DWriteTextOutRenderer())
- : static_cast<TextOutRenderer*>(new ExTextOutRenderer()));
+ : static_cast<TextOutRenderer*>(new ExTextOutRenderer));
return *_impl;
}
else
{
- static std::unique_ptr<TextOutRenderer> _impl(new ExTextOutRenderer());
+ static std::unique_ptr<TextOutRenderer> _impl(new ExTextOutRenderer);
return *_impl;
}