From 0d36b32755ac662299e6a8165e9fa57311b74a2f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 28 Jul 2019 12:03:35 +0200 Subject: loplugin:sequentialassign Change-Id: I56a9bf698b60bd278c71cc632aacef2bd2f4c13f Reviewed-on: https://gerrit.libreoffice.org/76501 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cui/source/customize/CustomNotebookbarGenerator.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cui/source/customize') 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'; -- cgit