diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-19 12:06:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-19 15:04:33 +0200 |
commit | 6a0a0a4d78bb8850bf4a304b83784d3822895efe (patch) | |
tree | 2800dce4daa42965a010336456117733830e2694 /sfx2 | |
parent | 832b23d9376019619929764606276aacde1e329a (diff) |
use more string_view in comphelper::string
Change-Id: I5d27824694e38de540e5f1fcd8704f8777f65140
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114261
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index ca5897df8a0a..6ea3fa7a17c9 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -145,7 +145,7 @@ OUString CreateSizeText( sal_Int64 nSize ) return aSizeStr; } -OUString ConvertDateTime_Impl( const OUString& rName, +OUString ConvertDateTime_Impl( std::u16string_view rName, const util::DateTime& uDT, const LocaleDataWrapper& rWrapper ) { Date aD(uDT); @@ -1030,7 +1030,7 @@ void SfxDocumentPage::Reset( const SfxItemSet* rSet ) } util::DateTime uDT; - OUString emptyDate = ConvertDateTime_Impl( "", uDT, rLocaleWrapper ); + OUString emptyDate = ConvertDateTime_Impl( u"", uDT, rLocaleWrapper ); if ( rCmisProp.Id == "cmis:creationDate" && (m_xCreateValFt->get_label() == emptyDate || m_xCreateValFt->get_label().isEmpty())) @@ -1039,7 +1039,7 @@ void SfxDocumentPage::Reset( const SfxItemSet* rSet ) rCmisProp.Value >>= seqValue; if ( seqValue.hasElements() ) { - m_xCreateValFt->set_label( ConvertDateTime_Impl( "", seqValue[0], rLocaleWrapper ) ); + m_xCreateValFt->set_label( ConvertDateTime_Impl( u"", seqValue[0], rLocaleWrapper ) ); } } if ( rCmisProp.Id == "cmis:lastModificationDate" && @@ -1050,7 +1050,7 @@ void SfxDocumentPage::Reset( const SfxItemSet* rSet ) rCmisProp.Value >>= seqValue; if ( seqValue.hasElements() ) { - m_xChangeValFt->set_label( ConvertDateTime_Impl( "", seqValue[0], rLocaleWrapper ) ); + m_xChangeValFt->set_label( ConvertDateTime_Impl( u"", seqValue[0], rLocaleWrapper ) ); } } } |