diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/printdlg.hxx | 2 | ||||
-rw-r--r-- | vcl/source/control/field.cxx | 8 | ||||
-rw-r--r-- | vcl/source/window/printdlg.cxx | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/vcl/inc/printdlg.hxx b/vcl/inc/printdlg.hxx index 60839b07382f..ee3c1896672e 100644 --- a/vcl/inc/printdlg.hxx +++ b/vcl/inc/printdlg.hxx @@ -66,7 +66,7 @@ namespace vcl virtual void Resize() override; void setPreview( const GDIMetaFile&, const Size& i_rPaperSize, - const OUString& i_rPaperName, + std::u16string_view i_rPaperName, const OUString& i_rNoPageString, sal_Int32 i_nDPIX, sal_Int32 i_nDPIY, bool i_bGreyscale diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx index fa9cf9760a78..f232e50a7c7a 100644 --- a/vcl/source/control/field.cxx +++ b/vcl/source/control/field.cxx @@ -364,8 +364,8 @@ bool ImplNumericGetValue( const OUString& rStr, sal_Int64& rValue, } void ImplUpdateSeparatorString( OUString& io_rText, - const OUString& rOldDecSep, const OUString& rNewDecSep, - const OUString& rOldThSep, const OUString& rNewThSep ) + const OUString& rOldDecSep, std::u16string_view rNewDecSep, + const OUString& rOldThSep, std::u16string_view rNewThSep ) { OUStringBuffer aBuf( io_rText.getLength() ); sal_Int32 nIndexDec = 0, nIndexTh = 0, nIndex = 0; @@ -399,8 +399,8 @@ void ImplUpdateSeparatorString( OUString& io_rText, io_rText = aBuf.makeStringAndClear(); } -void ImplUpdateSeparators( const OUString& rOldDecSep, const OUString& rNewDecSep, - const OUString& rOldThSep, const OUString& rNewThSep, +void ImplUpdateSeparators( const OUString& rOldDecSep, std::u16string_view rNewDecSep, + const OUString& rOldThSep, std::u16string_view rNewThSep, Edit* pEdit ) { bool bChangeDec = (rOldDecSep != rNewDecSep); diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx index ecdcaeafa853..f5fac8531094 100644 --- a/vcl/source/window/printdlg.cxx +++ b/vcl/source/window/printdlg.cxx @@ -219,7 +219,7 @@ bool PrintDialog::PrintPreviewWindow::Command( const CommandEvent& rEvt ) void PrintDialog::PrintPreviewWindow::setPreview( const GDIMetaFile& i_rNewPreview, const Size& i_rOrigSize, - const OUString& i_rPaperName, + std::u16string_view i_rPaperName, const OUString& i_rReplacement, sal_Int32 i_nDPIX, sal_Int32 i_nDPIY, @@ -248,7 +248,7 @@ void PrintDialog::PrintPreviewWindow::setPreview( const GDIMetaFile& i_rNewPrevi aBuf.append( aNumText ) .append( u' ' ); aBuf.appendAscii( eUnit == MapUnit::MapMM ? "mm" : "in" ); - if( !i_rPaperName.isEmpty() ) + if( !i_rPaperName.empty() ) { aBuf.append( " (" ); aBuf.append( i_rPaperName ); |