summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unoredline.cxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-11-25 08:14:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-30 12:32:14 +0100
commit8332d6d8200e8ca1f22dd98d9373efd5a431d09c (patch)
treedd45d452202998297b8562743ea6345462304d04 /sw/source/core/unocore/unoredline.cxx
parentd05a4cfbdcece491f7385dbeaa7eca03f2fdc1d5 (diff)
loplugin:stringviewparam include comparisons with string literals
Change-Id: I8ba1214500dddaf413c506a4b82f43d63cda804b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106559 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/unocore/unoredline.cxx')
-rw-r--r--sw/source/core/unocore/unoredline.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/sw/source/core/unocore/unoredline.cxx b/sw/source/core/unocore/unoredline.cxx
index 7095280585f1..df3ad38cfffd 100644
--- a/sw/source/core/unocore/unoredline.cxx
+++ b/sw/source/core/unocore/unoredline.cxx
@@ -249,38 +249,38 @@ uno::Sequence< sal_Int8 > SAL_CALL SwXRedlinePortion::getImplementationId( )
return css::uno::Sequence<sal_Int8>();
}
-uno::Any SwXRedlinePortion::GetPropertyValue( const OUString& rPropertyName, const SwRangeRedline& rRedline )
+uno::Any SwXRedlinePortion::GetPropertyValue( std::u16string_view rPropertyName, const SwRangeRedline& rRedline )
{
uno::Any aRet;
- if(rPropertyName == UNO_NAME_REDLINE_AUTHOR)
+ if(rPropertyName == u"" UNO_NAME_REDLINE_AUTHOR)
aRet <<= rRedline.GetAuthorString();
- else if(rPropertyName == UNO_NAME_REDLINE_DATE_TIME)
+ else if(rPropertyName == u"" UNO_NAME_REDLINE_DATE_TIME)
{
aRet <<= rRedline.GetTimeStamp().GetUNODateTime();
}
- else if(rPropertyName == UNO_NAME_REDLINE_COMMENT)
+ else if(rPropertyName == u"" UNO_NAME_REDLINE_COMMENT)
aRet <<= rRedline.GetComment();
- else if(rPropertyName == UNO_NAME_REDLINE_DESCRIPTION)
+ else if(rPropertyName == u"" UNO_NAME_REDLINE_DESCRIPTION)
aRet <<= const_cast<SwRangeRedline&>(rRedline).GetDescr();
- else if(rPropertyName == UNO_NAME_REDLINE_TYPE)
+ else if(rPropertyName == u"" UNO_NAME_REDLINE_TYPE)
{
aRet <<= SwRedlineTypeToOUString(rRedline.GetType());
}
- else if(rPropertyName == UNO_NAME_REDLINE_SUCCESSOR_DATA)
+ else if(rPropertyName == u"" UNO_NAME_REDLINE_SUCCESSOR_DATA)
{
if(rRedline.GetRedlineData().Next())
aRet <<= lcl_GetSuccessorProperties(rRedline);
}
- else if (rPropertyName == UNO_NAME_REDLINE_IDENTIFIER)
+ else if (rPropertyName == u"" UNO_NAME_REDLINE_IDENTIFIER)
{
aRet <<= OUString::number(
sal::static_int_cast< sal_Int64 >( reinterpret_cast< sal_IntPtr >(&rRedline) ) );
}
- else if (rPropertyName == UNO_NAME_IS_IN_HEADER_FOOTER)
+ else if (rPropertyName == u"" UNO_NAME_IS_IN_HEADER_FOOTER)
{
aRet <<= rRedline.GetDoc().IsInHeaderFooter( rRedline.GetPoint()->nNode );
}
- else if (rPropertyName == UNO_NAME_MERGE_LAST_PARA)
+ else if (rPropertyName == u"" UNO_NAME_MERGE_LAST_PARA)
{
aRet <<= !rRedline.IsDelLastPara();
}