summaryrefslogtreecommitdiff
path: root/io/source/connector/ctr_socket.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'io/source/connector/ctr_socket.cxx')
-rw-r--r--io/source/connector/ctr_socket.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/io/source/connector/ctr_socket.cxx b/io/source/connector/ctr_socket.cxx
index 6b53436e0c01..3d7e320575f1 100644
--- a/io/source/connector/ctr_socket.cxx
+++ b/io/source/connector/ctr_socket.cxx
@@ -20,7 +20,7 @@
#include "connector.hxx"
#include <rtl/ustrbuf.hxx>
-#include <algorithm>
+#include <exception>
using namespace ::osl;
using namespace ::com::sun::star::uno;
@@ -43,7 +43,8 @@ namespace stoc_connector {
}
}
- ::std::for_each(listeners.begin(), listeners.end(), t);
+ for(auto& listener : listeners)
+ t(listener);
}