summaryrefslogtreecommitdiff
path: root/io/source
diff options
context:
space:
mode:
Diffstat (limited to 'io/source')
-rw-r--r--io/source/acceptor/acc_pipe.cxx9
-rw-r--r--io/source/acceptor/acceptor.cxx9
2 files changed, 7 insertions, 11 deletions
diff --git a/io/source/acceptor/acc_pipe.cxx b/io/source/acceptor/acc_pipe.cxx
index 8f713e713185..9ff92addcba6 100644
--- a/io/source/acceptor/acc_pipe.cxx
+++ b/io/source/acceptor/acc_pipe.cxx
@@ -159,8 +159,7 @@ namespace io_acceptor
m_pipe = Pipe( m_sPipeName.pData , osl_Pipe_CREATE , osl::Security() );
if( ! m_pipe.is() )
{
- OUString error = OUString("io.acceptor: Couldn't setup pipe ");
- error += m_sPipeName;
+ OUString error = "io.acceptor: Couldn't setup pipe " + m_sPipeName;
throw ConnectionSetupException( error, Reference< XInterface > () );
}
}
@@ -174,8 +173,7 @@ namespace io_acceptor
}
if( ! pipe.is() )
{
- OUString error = OUString("io.acceptor: pipe already closed");
- error += m_sPipeName;
+ OUString error = "io.acceptor: pipe already closed" + m_sPipeName;
throw ConnectionSetupException( error, Reference< XInterface > () );
}
PipeConnection *pConn = new PipeConnection( m_sConnectionDescription );
@@ -194,8 +192,7 @@ namespace io_acceptor
}
else
{
- OUString error = OUString("io.acceptor: Couldn't setup pipe ");
- error += m_sPipeName;
+ OUString error = "io.acceptor: Couldn't setup pipe " + m_sPipeName;
throw ConnectionSetupException( error, Reference< XInterface > ());
}
}
diff --git a/io/source/acceptor/acceptor.cxx b/io/source/acceptor/acceptor.cxx
index ddcb99664dec..089d08199452 100644
--- a/io/source/acceptor/acceptor.cxx
+++ b/io/source/acceptor/acceptor.cxx
@@ -137,7 +137,7 @@ namespace io_acceptor
m_sLastDescription != sConnectionDescription )
{
// instantiate another acceptor for different ports
- OUString sMessage = OUString("acceptor::accept called multiple times with different conncetion strings\n" );
+ OUString sMessage = "acceptor::accept called multiple times with different conncetion strings\n";
throw ConnectionSetupException( sMessage, Reference< XInterface > () );
}
@@ -177,7 +177,7 @@ namespace io_acceptor
aHost = aDesc.getParameter(
OUString("host"));
else
- aHost = OUString("localhost");
+ aHost = "localhost";
sal_uInt16 nPort = static_cast< sal_uInt16 >(
aDesc.getParameter(
OUString("port")).
@@ -205,8 +205,7 @@ namespace io_acceptor
}
else
{
- OUString delegatee = OUString("com.sun.star.connection.Acceptor.");
- delegatee += aDesc.getName();
+ OUString delegatee = "com.sun.star.connection.Acceptor." + aDesc.getName();
OSL_TRACE(
"trying to get service %s\n",
@@ -282,7 +281,7 @@ namespace io_acceptor
Sequence< OUString > acceptor_getSupportedServiceNames()
{
Sequence< OUString > seqNames(1);
- seqNames.getArray()[0] = OUString(SERVICE_NAME);
+ seqNames.getArray()[0] = SERVICE_NAME;
return seqNames;
}