summaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-26 15:26:03 +0200
committerNoel Grandin <noel@peralex.com>2014-05-27 08:20:11 +0200
commit9af0abebfd61641c9d028505caa864cdf898e35b (patch)
treeaff469b96f89daf093271d95f790250147ea9c0d /io
parent9b791f9c31165b82ec0fa3760a8af18c5af21294 (diff)
remove unnecessary use of Reference constructor in throw
Convert code like this: throw IOException("xx", Reference< XInterface >(static_cast<OWeakObject*>(this)) ); to this: throw IOException("xx", static_cast<OWeakObject*>(this) ); Change-Id: Ife9f645f0f1810a8e80219126193015502c43dbb
Diffstat (limited to 'io')
-rw-r--r--io/source/acceptor/acc_socket.cxx8
-rw-r--r--io/source/connector/ctr_socket.cxx8
2 files changed, 8 insertions, 8 deletions
diff --git a/io/source/acceptor/acc_socket.cxx b/io/source/acceptor/acc_socket.cxx
index 936116f93c74..64376cb07846 100644
--- a/io/source/acceptor/acc_socket.cxx
+++ b/io/source/acceptor/acc_socket.cxx
@@ -211,7 +211,7 @@ namespace io_acceptor {
OUString message("acc_socket.cxx:SocketConnection::read: error - ");
message += m_socket.getErrorAsString();
- IOException ioException(message, Reference<XInterface>(static_cast<XConnection *>(this)));
+ IOException ioException(message, static_cast<XConnection *>(this));
Any any;
any <<= ioException;
@@ -227,7 +227,7 @@ namespace io_acceptor {
{
OUString message("acc_socket.cxx:SocketConnection::read: error - connection already closed");
- IOException ioException(message, Reference<XInterface>(static_cast<XConnection *>(this)));
+ IOException ioException(message, static_cast<XConnection *>(this));
Any any;
any <<= ioException;
@@ -249,7 +249,7 @@ namespace io_acceptor {
OUString message("acc_socket.cxx:SocketConnection::write: error - ");
message += m_socket.getErrorAsString();
- IOException ioException(message, Reference<XInterface>(static_cast<XConnection *>(this)));
+ IOException ioException(message, static_cast<XConnection *>(this));
Any any;
any <<= ioException;
@@ -263,7 +263,7 @@ namespace io_acceptor {
{
OUString message("acc_socket.cxx:SocketConnection::write: error - connection already closed");
- IOException ioException(message, Reference<XInterface>(static_cast<XConnection *>(this)));
+ IOException ioException(message, static_cast<XConnection *>(this));
Any any;
any <<= ioException;
diff --git a/io/source/connector/ctr_socket.cxx b/io/source/connector/ctr_socket.cxx
index d7ad019a3525..059d97270c87 100644
--- a/io/source/connector/ctr_socket.cxx
+++ b/io/source/connector/ctr_socket.cxx
@@ -135,7 +135,7 @@ namespace stoc_connector {
OUString message("ctr_socket.cxx:SocketConnection::read: error - ");
message += m_socket.getErrorAsString();
- IOException ioException(message, Reference<XInterface>(static_cast<XConnection *>(this)));
+ IOException ioException(message, static_cast<XConnection *>(this));
Any any;
any <<= ioException;
@@ -151,7 +151,7 @@ namespace stoc_connector {
{
OUString message("ctr_socket.cxx:SocketConnection::read: error - connection already closed");
- IOException ioException(message, Reference<XInterface>(static_cast<XConnection *>(this)));
+ IOException ioException(message, static_cast<XConnection *>(this));
Any any;
any <<= ioException;
@@ -173,7 +173,7 @@ namespace stoc_connector {
OUString message("ctr_socket.cxx:SocketConnection::write: error - ");
message += m_socket.getErrorAsString();
- IOException ioException(message, Reference<XInterface>(static_cast<XConnection *>(this)));
+ IOException ioException(message, static_cast<XConnection *>(this));
Any any;
any <<= ioException;
@@ -187,7 +187,7 @@ namespace stoc_connector {
{
OUString message("ctr_socket.cxx:SocketConnection::write: error - connection already closed");
- IOException ioException(message, Reference<XInterface>(static_cast<XConnection *>(this)));
+ IOException ioException(message, static_cast<XConnection *>(this));
Any any;
any <<= ioException;