summaryrefslogtreecommitdiff
path: root/svx/source/fmcomp/gridcell.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-10-19 10:30:32 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-10-20 18:43:34 +0200
commitb60b3b5bbcc8db61bb24d3866b48cb4c63eb4f30 (patch)
tree0435420b4663f607f8a81fd944378cae54ea676a /svx/source/fmcomp/gridcell.cxx
parent7c59c59a0b6abee5d2c147139a79051a190939aa (diff)
Extended loplugin:ostr: Automatic rewrite O[U]StringLiteral: svx
Change-Id: Ib5028b826a3f62303b9e0502af70ad62c578fbb1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158240 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svx/source/fmcomp/gridcell.cxx')
-rw-r--r--svx/source/fmcomp/gridcell.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx
index 7e9dfb35bff7..aafa8a161a88 100644
--- a/svx/source/fmcomp/gridcell.cxx
+++ b/svx/source/fmcomp/gridcell.cxx
@@ -84,8 +84,8 @@ using namespace ::dbtools;
using ::com::sun::star::util::XNumberFormatter;
-constexpr OUStringLiteral INVALIDTEXT = u"###";
-constexpr OUStringLiteral OBJECTTEXT = u"<OBJECT>";
+constexpr OUString INVALIDTEXT = u"###"_ustr;
+constexpr OUString OBJECTTEXT = u"<OBJECT>"_ustr;
//= helper
@@ -458,7 +458,7 @@ void DbGridColumn::Paint(OutputDevice& rDev,
if ( !bEnabled )
nStyle |= DrawTextFlags::Disable;
- rDev.DrawText(rRect, OUString(INVALIDTEXT), nStyle);
+ rDev.DrawText(rRect, INVALIDTEXT, nStyle);
}
else if (m_bAutoValue && pRow->IsNew())
{
@@ -493,14 +493,14 @@ void DbGridColumn::Paint(OutputDevice& rDev,
if ( !bEnabled )
nStyle |= DrawTextFlags::Disable;
- rDev.DrawText(rRect, OUString(INVALIDTEXT), nStyle);
+ rDev.DrawText(rRect, INVALIDTEXT, nStyle);
}
else if (pRow->HasField(m_nFieldPos) && m_bObject)
{
DrawTextFlags nStyle = DrawTextFlags::Clip | DrawTextFlags::Center;
if ( !bEnabled )
nStyle |= DrawTextFlags::Disable;
- rDev.DrawText(rRect, OUString(OBJECTTEXT), nStyle);
+ rDev.DrawText(rRect, OBJECTTEXT, nStyle);
}
}
else if ( auto pFilterCell = dynamic_cast<FmXFilterCell*>( m_pCell.get() ) )