diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-28 12:03:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-29 08:53:23 +0200 |
commit | 0d36b32755ac662299e6a8165e9fa57311b74a2f (patch) | |
tree | ce68c6d050056858dbf31033d7d3a3741aab2276 /cui | |
parent | f53fcf9cfcc0bef415f9d2d95132ccd8bbe96061 (diff) |
loplugin:sequentialassign
Change-Id: I56a9bf698b60bd278c71cc632aacef2bd2f4c13f
Reviewed-on: https://gerrit.libreoffice.org/76501
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/customize/CustomNotebookbarGenerator.cxx | 3 | ||||
-rw-r--r-- | cui/source/dialogs/tipofthedaydlg.cxx | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/cui/source/customize/CustomNotebookbarGenerator.cxx b/cui/source/customize/CustomNotebookbarGenerator.cxx index ceb5bd30fa64..b8f7e7c6fd49 100644 --- a/cui/source/customize/CustomNotebookbarGenerator.cxx +++ b/cui/source/customize/CustomNotebookbarGenerator.cxx @@ -130,8 +130,7 @@ static OUString getUIDirPath() char* CustomNotebookbarGenerator::convertToCharPointer(const OUString& sString) { - char* cString = nullptr; - cString = new char[sString.getLength() + 1]; + char* cString = new char[sString.getLength() + 1]; for (int nIdx = 0; nIdx < sString.getLength(); nIdx++) *(cString + nIdx) = char(sString[nIdx]); *(cString + sString.getLength()) = '\0'; diff --git a/cui/source/dialogs/tipofthedaydlg.cxx b/cui/source/dialogs/tipofthedaydlg.cxx index 1495d83f163b..df52c5cc0106 100644 --- a/cui/source/dialogs/tipofthedaydlg.cxx +++ b/cui/source/dialogs/tipofthedaydlg.cxx @@ -103,8 +103,7 @@ void TipOfTheDayDialog::UpdateTip() Graphic aGraphic; if (GraphicFilter::LoadGraphic(aURL + aImage, OUString(), aGraphic) == ERRCODE_NONE) { - ScopedVclPtr<VirtualDevice> m_pVirDev; - m_pVirDev = m_pImage->create_virtual_device(); + ScopedVclPtr<VirtualDevice> m_pVirDev = m_pImage->create_virtual_device(); m_pVirDev->SetOutputSizePixel(aGraphic.GetSizePixel()); m_pVirDev->DrawBitmapEx(Point(0, 0), aGraphic.GetBitmapEx()); m_pImage->set_image(m_pVirDev.get()); |