Kaydet (Commit) b62f1bd5 authored tarafından Mario J. Rugiero's avatar Mario J. Rugiero Kaydeden (comit) Noel Grandin

Replaced for_each and algorithm include by range based loop and exception.

Since the only thing used from algorithm was std::for_each, and std::exception
was being used without including it.

Change-Id: Ida415bfbcae2b14811183a6afa46b6f6e1ac6ab2
Reviewed-on: https://gerrit.libreoffice.org/19864Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 986c4950
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include "acceptor.hxx" #include "acceptor.hxx"
#include <algorithm> #include <exception>
#include <unordered_set> #include <unordered_set>
#include <osl/mutex.hxx> #include <osl/mutex.hxx>
...@@ -123,7 +123,8 @@ namespace io_acceptor { ...@@ -123,7 +123,8 @@ namespace io_acceptor {
} }
} }
::std::for_each(listeners.begin(), listeners.end(), t); for(auto& listener : listeners)
t(listener);
} }
static void callStarted(Reference<XStreamListener> xStreamListener) static void callStarted(Reference<XStreamListener> xStreamListener)
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include "connector.hxx" #include "connector.hxx"
#include <rtl/ustrbuf.hxx> #include <rtl/ustrbuf.hxx>
#include <algorithm> #include <exception>
using namespace ::osl; using namespace ::osl;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
...@@ -43,7 +43,8 @@ namespace stoc_connector { ...@@ -43,7 +43,8 @@ namespace stoc_connector {
} }
} }
::std::for_each(listeners.begin(), listeners.end(), t); for(auto& listener : listeners)
t(listener);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment