summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-08-31 08:00:20 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-08-31 08:00:20 +0200
commit36fe72f915c44ff026514352ff8378178f437e66 (patch)
tree8a3a94c5593cf8f6f96f308a6da20a78c1b4df38
parentloplugin:stringconstant: OUStringBuffer: appendAscii -> append (diff)
downloadcore-36fe72f915c44ff026514352ff8378178f437e66.tar.gz
core-36fe72f915c44ff026514352ff8378178f437e66.zip
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: I69c2c27af718b1d3ff35348a69d8b57914e5ae82
-rw-r--r--vcl/osx/printaccessoryview.mm2
-rw-r--r--vcl/source/control/throbber.cxx8
-rw-r--r--vcl/source/gdi/print3.cxx4
-rw-r--r--vcl/source/window/printdlg.cxx2
-rw-r--r--vcl/source/window/window.cxx2
-rw-r--r--vcl/workben/svpclient.cxx2
-rw-r--r--vcl/workben/svptest.cxx2
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<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() );
}
diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx
index 2c8eb81d60a3..17ada9e32e84 100644
--- a/vcl/source/gdi/print3.cxx
+++ b/vcl/source/gdi/print3.cxx
@@ -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()));
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)),