This aParentName can be const

Change-Id: If3d94b7b8e9b10934b1be0771c4c85536bc750f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124642
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
Kevin Suo
2021-11-03 19:38:16 +08:00
committed by Mike Kaganski
parent 643bbf9e47
commit ac3266cccc

View File

@@ -2160,7 +2160,7 @@ void ScOrcusStyles::set_cell_style_builtin(size_t index)
void ScOrcusStyles::set_cell_style_parent_name(const char* s, size_t n)
{
OUString aParentName(s, n, mrFactory.getGlobalSettings().getTextEncoding());
const OUString aParentName(s, n, mrFactory.getGlobalSettings().getTextEncoding());
maCurrentCellStyle.maParentName = aParentName;
}