Kaydet (Commit) 36fe72f9 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:stringconstant: OUStringBuffer: appendAscii -> append

Change-Id: I69c2c27af718b1d3ff35348a69d8b57914e5ae82
üst 6afc1202
......@@ -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() );
......
......@@ -225,13 +225,13 @@ void Throbber::setImageList( const Sequence< Reference< XGraphic > >& rImageList
for ( size_t i=0; i<nImageCounts[index]; ++i )
{
OUStringBuffer aURL;
aURL.appendAscii( "private:graphicrepository/vcl/res/spinner-" );
aURL.append( "private:graphicrepository/vcl/res/spinner-" );
aURL.appendAscii( pResolutions[index] );
aURL.appendAscii( "-" );
aURL.append( "-" );
if ( i < 9 )
aURL.appendAscii( "0" );
aURL.append( "0" );
aURL.append ( sal_Int32( i + 1 ) );
aURL.appendAscii( ".png" );
aURL.append( ".png" );
aImageURLs.push_back( aURL.makeStringAndClear() );
}
......
......@@ -380,10 +380,10 @@ bool Printer::PreparePrintJob(std::shared_ptr<PrinterController> 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()));
......
......@@ -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( ')' );
}
......
......@@ -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();
}
......
......@@ -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() );
}
......
......@@ -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)),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment