From 36fe72f915c44ff026514352ff8378178f437e66 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 31 Aug 2015 08:00:20 +0200 Subject: loplugin:stringconstant: OUStringBuffer: appendAscii -> append Change-Id: I69c2c27af718b1d3ff35348a69d8b57914e5ae82 --- vcl/osx/printaccessoryview.mm | 2 +- vcl/source/control/throbber.cxx | 8 ++++---- vcl/source/gdi/print3.cxx | 4 ++-- vcl/source/window/printdlg.cxx | 2 +- vcl/source/window/window.cxx | 2 +- vcl/workben/svpclient.cxx | 2 +- vcl/workben/svptest.cxx | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/vcl/osx/printaccessoryview.mm b/vcl/osx/printaccessoryview.mm index 7f7c82699189..d03d4f403012 100644 --- a/vcl/osx/printaccessoryview.mm +++ b/vcl/osx/printaccessoryview.mm @@ -367,7 +367,7 @@ class ControllerProperties // add a label sal_Int32 nPages = mpController->getFilteredPageCount(); rtl::OUStringBuffer aBuf( 16 ); - aBuf.appendAscii( "/ " ); + aBuf.append( "/ " ); aBuf.append( rtl::OUString::number( nPages ) ); NSString* pText = CreateNSString( aBuf.makeStringAndClear() ); diff --git a/vcl/source/control/throbber.cxx b/vcl/source/control/throbber.cxx index c38690f01389..7306868cd32f 100644 --- a/vcl/source/control/throbber.cxx +++ b/vcl/source/control/throbber.cxx @@ -225,13 +225,13 @@ void Throbber::setImageList( const Sequence< Reference< XGraphic > >& rImageList for ( size_t i=0; i xController, if( nPages > 0 ) { OUStringBuffer aBuf( 32 ); - aBuf.appendAscii( "1" ); + aBuf.append( "1" ); if( nPages > 1 ) { - aBuf.appendAscii( "-" ); + aBuf.append( "-" ); aBuf.append( nPages ); } xController->setValue(OUString("PageRange"), makeAny(aBuf.makeStringAndClear())); diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx index c7995ac3c90e..acde652370fe 100644 --- a/vcl/source/window/printdlg.cxx +++ b/vcl/source/window/printdlg.cxx @@ -247,7 +247,7 @@ void PrintDialog::PrintPreviewWindow::setPreview( const GDIMetaFile& i_rNewPrevi aBuf.appendAscii( eUnit == MAP_MM ? "mm" : "in" ); if( !i_rPaperName.isEmpty() ) { - aBuf.appendAscii( " (" ); + aBuf.append( " (" ); aBuf.append( i_rPaperName ); aBuf.append( ')' ); } diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 5f6fa6c0906c..75ef53214b8c 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -3303,7 +3303,7 @@ const OUString& Window::GetHelpText() const { OUStringBuffer aTxt( 64+mpWindowImpl->maHelpText.getLength() ); aTxt.append( mpWindowImpl->maHelpText ); - aTxt.appendAscii( "\n------------------\n" ); + aTxt.append( "\n------------------\n" ); aTxt.append( OUString( aStrHelpId ) ); mpWindowImpl->maHelpText = aTxt.makeStringAndClear(); } diff --git a/vcl/workben/svpclient.cxx b/vcl/workben/svpclient.cxx index 0a0dad1ec222..85ece06149c3 100644 --- a/vcl/workben/svpclient.cxx +++ b/vcl/workben/svpclient.cxx @@ -187,7 +187,7 @@ void MyWin::parseList( const OString& rList ) { OUStringBuffer aNewElement( 64 ); aNewElement.append( aElementType ); - aNewElement.appendAscii( ": " ); + aNewElement.append( ": " ); aNewElement.append( OStringToOUString( aLine, RTL_TEXTENCODING_ASCII_US ) ); m_aSvpBitmaps->InsertEntry( aNewElement.makeStringAndClear() ); } diff --git a/vcl/workben/svptest.cxx b/vcl/workben/svptest.cxx index f13acfa967c6..140f807e3971 100644 --- a/vcl/workben/svptest.cxx +++ b/vcl/workben/svptest.cxx @@ -269,7 +269,7 @@ void MyWin::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) OUStringBuffer aPrintText(1024); long nMaxWidth = 0; - aPrintText.appendAscii( "SVP test program" ); + aPrintText.append( "SVP test program" ); rRenderContext.DrawText(Rectangle(Point((aPaperSize.Width() - 4000) / 2, 2000), Size(aPaperSize.Width() - 2100 - nMaxWidth, aPaperSize.Height() - 4000)), -- cgit