summaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-08-31 08:03:05 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-08-31 08:03:05 +0200
commit1656b722f066bc4b1137ce0fd084f6004b2063c6 (patch)
tree206971225772412485b09dedea89276e5170b4cb /io
parentaa80dcf5346477740cf9b0b45143dc1d9c6957e1 (diff)
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: I3adb8d5664ecd8fafccc7bae0656f15100484422
Diffstat (limited to 'io')
-rw-r--r--io/source/acceptor/acc_socket.cxx20
-rw-r--r--io/source/connector/ctr_socket.cxx8
-rw-r--r--io/source/stm/omark.cxx24
3 files changed, 26 insertions, 26 deletions
diff --git a/io/source/acceptor/acc_socket.cxx b/io/source/acceptor/acc_socket.cxx
index 103b1dd40b07..96cfb369a03a 100644
--- a/io/source/acceptor/acc_socket.cxx
+++ b/io/source/acceptor/acc_socket.cxx
@@ -176,14 +176,14 @@ namespace io_acceptor {
void SocketConnection::completeConnectionString()
{
OUStringBuffer buf( 256 );
- buf.appendAscii( ",peerPort=" );
+ buf.append( ",peerPort=" );
buf.append( (sal_Int32) m_socket.getPeerPort() );
- buf.appendAscii( ",peerHost=" );
+ buf.append( ",peerHost=" );
buf.append( m_socket.getPeerHost( ) );
- buf.appendAscii( ",localPort=" );
+ buf.append( ",localPort=" );
buf.append( (sal_Int32) m_socket.getLocalPort() );
- buf.appendAscii( ",localHost=" );
+ buf.append( ",localHost=" );
buf.append( m_socket.getLocalHost() );
m_sDescription += buf.makeStringAndClear();
@@ -332,14 +332,14 @@ namespace io_acceptor {
if( ! m_addr.setPort( m_nPort ) )
{
OUStringBuffer message( 128 );
- message.appendAscii( "acc_socket.cxx:SocketAcceptor::init - error - invalid tcp/ip port " );
+ message.append( "acc_socket.cxx:SocketAcceptor::init - error - invalid tcp/ip port " );
message.append( (sal_Int32) m_nPort );
throw ConnectionSetupException( message.makeStringAndClear() );
}
if( ! m_addr.setHostname( m_sSocketName.pData ) )
{
OUStringBuffer message( 128 );
- message.appendAscii( "acc_socket.cxx:SocketAcceptor::init - error - invalid host " );
+ message.append( "acc_socket.cxx:SocketAcceptor::init - error - invalid host " );
message.append( m_sSocketName );
throw ConnectionSetupException( message.makeStringAndClear() );
}
@@ -348,16 +348,16 @@ namespace io_acceptor {
if(! m_socket.bind(m_addr) )
{
OUStringBuffer message( 128 );
- message.appendAscii( "acc_socket.cxx:SocketAcceptor::init - error - couldn't bind on " );
- message.append( m_sSocketName ).appendAscii( ":" ).append((sal_Int32)m_nPort);
+ message.append( "acc_socket.cxx:SocketAcceptor::init - error - couldn't bind on " );
+ message.append( m_sSocketName ).append( ":" ).append((sal_Int32)m_nPort);
throw ConnectionSetupException( message.makeStringAndClear() );
}
if(! m_socket.listen() )
{
OUStringBuffer message( 128 );
- message.appendAscii( "acc_socket.cxx:SocketAcceptor::init - error - can't listen on " );
- message.append( m_sSocketName ).appendAscii( ":" ).append( (sal_Int32) m_nPort);
+ message.append( "acc_socket.cxx:SocketAcceptor::init - error - can't listen on " );
+ message.append( m_sSocketName ).append( ":" ).append( (sal_Int32) m_nPort);
throw ConnectionSetupException( message.makeStringAndClear() );
}
}
diff --git a/io/source/connector/ctr_socket.cxx b/io/source/connector/ctr_socket.cxx
index c23c8969b026..01c62d7e034a 100644
--- a/io/source/connector/ctr_socket.cxx
+++ b/io/source/connector/ctr_socket.cxx
@@ -101,14 +101,14 @@ namespace stoc_connector {
nPort = m_socket.getPeerPort();
OUStringBuffer buf( 256 );
- buf.appendAscii( ",peerPort=" );
+ buf.append( ",peerPort=" );
buf.append( (sal_Int32) nPort );
- buf.appendAscii( ",peerHost=" );
+ buf.append( ",peerHost=" );
buf.append( m_socket.getPeerHost() );
- buf.appendAscii( ",localPort=" );
+ buf.append( ",localPort=" );
buf.append( (sal_Int32) nPort );
- buf.appendAscii( ",localHost=" );
+ buf.append( ",localHost=" );
buf.append( m_socket.getLocalHost( ) );
m_sDescription += buf.makeStringAndClear();
diff --git a/io/source/stm/omark.cxx b/io/source/stm/omark.cxx
index 4871333ae8aa..fd2db9894726 100644
--- a/io/source/stm/omark.cxx
+++ b/io/source/stm/omark.cxx
@@ -266,9 +266,9 @@ void OMarkableOutputStream::deleteMark(sal_Int32 Mark)
if( ii == m_mapMarks.end() ) {
OUStringBuffer buf( 128 );
- buf.appendAscii( "MarkableOutputStream::deleteMark unknown mark (" );
+ buf.append( "MarkableOutputStream::deleteMark unknown mark (" );
buf.append( Mark );
- buf.appendAscii( ")");
+ buf.append( ")");
throw IllegalArgumentException( buf.makeStringAndClear(), *this, 0);
}
else {
@@ -287,9 +287,9 @@ void OMarkableOutputStream::jumpToMark(sal_Int32 nMark)
if( ii == m_mapMarks.end() ) {
OUStringBuffer buf( 128 );
- buf.appendAscii( "MarkableOutputStream::jumpToMark unknown mark (" );
+ buf.append( "MarkableOutputStream::jumpToMark unknown mark (" );
buf.append( nMark );
- buf.appendAscii( ")");
+ buf.append( ")");
throw IllegalArgumentException( buf.makeStringAndClear(), *this, 0);
}
else {
@@ -318,9 +318,9 @@ sal_Int32 OMarkableOutputStream::offsetToMark(sal_Int32 nMark)
if( ii == m_mapMarks.end() )
{
OUStringBuffer buf( 128 );
- buf.appendAscii( "MarkableOutputStream::offsetToMark unknown mark (" );
+ buf.append( "MarkableOutputStream::offsetToMark unknown mark (" );
buf.append( nMark );
- buf.appendAscii( ")");
+ buf.append( ")");
throw IllegalArgumentException( buf.makeStringAndClear(), *this, 0);
}
return m_nCurrentPos - (*ii).second;
@@ -779,9 +779,9 @@ void OMarkableInputStream::deleteMark(sal_Int32 Mark) throw (IOException,
if( ii == m_mapMarks.end() ) {
OUStringBuffer buf( 128 );
- buf.appendAscii( "MarkableInputStream::deleteMark unknown mark (" );
+ buf.append( "MarkableInputStream::deleteMark unknown mark (" );
buf.append( Mark );
- buf.appendAscii( ")");
+ buf.append( ")");
throw IllegalArgumentException( buf.makeStringAndClear(), *this , 0 );
}
else {
@@ -801,9 +801,9 @@ void OMarkableInputStream::jumpToMark(sal_Int32 nMark)
if( ii == m_mapMarks.end() )
{
OUStringBuffer buf( 128 );
- buf.appendAscii( "MarkableInputStream::jumpToMark unknown mark (" );
+ buf.append( "MarkableInputStream::jumpToMark unknown mark (" );
buf.append( nMark );
- buf.appendAscii( ")");
+ buf.append( ")");
throw IllegalArgumentException( buf.makeStringAndClear(), *this , 0 );
}
else
@@ -830,9 +830,9 @@ sal_Int32 OMarkableInputStream::offsetToMark(sal_Int32 nMark)
if( ii == m_mapMarks.end() )
{
OUStringBuffer buf( 128 );
- buf.appendAscii( "MarkableInputStream::offsetToMark unknown mark (" );
+ buf.append( "MarkableInputStream::offsetToMark unknown mark (" );
buf.append( nMark );
- buf.appendAscii( ")");
+ buf.append( ")");
throw IllegalArgumentException( buf.makeStringAndClear(), *this , 0 );
}
return m_nCurrentPos - (*ii).second;