summaryrefslogtreecommitdiff
path: root/io/source/acceptor/acc_pipe.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-04 14:00:40 +0200
committerNoel Grandin <noel@peralex.com>2013-11-11 11:21:26 +0200
commite52779d2f8722c713f72aedbf475267440d729f0 (patch)
tree0f2f15b2a7645e0b75f8057c96c90e05e1a6e7df /io/source/acceptor/acc_pipe.cxx
parente9c4ee996d5a6bf895072613ac4e488346ee5b05 (diff)
remove unnecessary use of OUString constructor
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
Diffstat (limited to 'io/source/acceptor/acc_pipe.cxx')
-rw-r--r--io/source/acceptor/acc_pipe.cxx9
1 files changed, 3 insertions, 6 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 > ());
}
}