vcl/osx/salprn.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 32ed2a4bbca0de1e5aa67e38e520e37e33a0df40 Author: Stephan Bergmann <[email protected]> AuthorDate: Thu Jan 2 13:52:22 2025 +0100 Commit: Stephan Bergmann <[email protected]> CommitDate: Thu Jan 2 15:53:01 2025 +0100 loplugin:reftotemp Change-Id: Ic2282e19fcb33cf08380a08098b375c0ca03b724 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179616 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <[email protected]> diff --git a/vcl/osx/salprn.cxx b/vcl/osx/salprn.cxx index 544816be701b..1c45b71eb384 100644 --- a/vcl/osx/salprn.cxx +++ b/vcl/osx/salprn.cxx @@ -222,7 +222,7 @@ void AquaSalInfoPrinter::setPaperSize( tools::Long i_nWidth, tools::Long i_nHeig { // If the paper name is empty, fallback to setting the paper size // using the specified width and height. - const rtl::OString &rPaperName( PaperInfo::toPSName( pPaper->getPaper() ) ); + const rtl::OString rPaperName( PaperInfo::toPSName( pPaper->getPaper() ) ); if( !rPaperName.isEmpty() ) { NSString* pPaperName = [CreateNSString( OStringToOUString( rPaperName, RTL_TEXTENCODING_ASCII_US ) ) autorelease];
