summaryrefslogtreecommitdiff
path: root/sc/source/ui/view
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-08-02 08:45:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-02 09:49:56 +0200
commit9c5744adbd97821b5574d55266f8a4e60fd925da (patch)
treef6318a932216bb25675029e9ac58f280a64c62b5 /sc/source/ui/view
parent559b342a62901754222723ee522f5ae80e4d40f5 (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r--sc/source/ui/view/viewdata.cxx4
1 files changed, 2 insertions, 2 deletions
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();