From 9c5744adbd97821b5574d55266f8a4e60fd925da Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 2 Aug 2021 08:45:04 +0200 Subject: convert #defines to OUStringLiteral mostly by doing $ git grep -l '#define.*\"' -- *.cxx | xargs perl -pi -e 's/^#define\s+(\w+)\s+(\".*\")/constexpr OUStringLiteral \1 = u\2;/g' Change-Id: I7467f9067085ac89b98a0398811396c448339b4a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119840 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/ui/view/viewdata.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sc/source/ui/view') diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx index a0a296c73e03..e284f2cce724 100644 --- a/sc/source/ui/view/viewdata.cxx +++ b/sc/source/ui/view/viewdata.cxx @@ -74,7 +74,7 @@ using namespace com::sun::star; #define SC_GROWY_SMALL_EXTRA 100 #define SC_GROWY_BIG_EXTRA 200 -#define TAG_TABBARWIDTH "tw:" +constexpr OUStringLiteral TAG_TABBARWIDTH = u"tw:"; namespace { @@ -3241,7 +3241,7 @@ void ScViewData::WriteUserData(OUString& rData) else rData += "0"; - rData += ";" + OUString::number( nTabNo ) + ";" TAG_TABBARWIDTH + + rData += ";" + OUString::number( nTabNo ) + ";" + TAG_TABBARWIDTH + OUString::number( pView->GetTabBarWidth() ); SCTAB nTabCount = mrDoc.GetTableCount(); -- cgit