diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2019-01-23 01:58:28 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2019-03-06 01:26:24 +0000 |
| commit | e71e984af918104579da59e45785fe1651c5e992 (patch) | |
| tree | 9fe91c6e2b1237055e46dc4974c1003c2abc8d61 /src/xml | |
| parent | Revert modal fix to fix #108 (diff) | |
| download | inkscape-e71e984af918104579da59e45785fe1651c5e992.tar.gz inkscape-e71e984af918104579da59e45785fe1651c5e992.zip | |
Avoid the “using std::*;” or “using namespace std;” constructs.
This makes the code a lot less readable and greppable for no reason.
Diffstat (limited to 'src/xml')
| -rw-r--r-- | src/xml/composite-node-observer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/xml/composite-node-observer.cpp b/src/xml/composite-node-observer.cpp index e3b40d43b..1f9c08681 100644 --- a/src/xml/composite-node-observer.cpp +++ b/src/xml/composite-node-observer.cpp @@ -161,8 +161,6 @@ void CompositeNodeObserver::addListener(NodeEventVector const &vector, namespace { -using std::find_if; -using Algorithms::find_if_before; typedef CompositeNodeObserver::ObserverRecord ObserverRecord; typedef CompositeNodeObserver::ObserverRecordList ObserverRecordList; @@ -205,7 +203,7 @@ bool remove_one(ObserverRecordList &observers, unsigned &/*marked_count*/, return true; } - ObserverRecordList::iterator found=find_if_before( + ObserverRecordList::iterator found=Algorithms::find_if_before( observers.begin(), observers.end(), unmarked_record_satisfying<Predicate>(p) ); @@ -233,7 +231,7 @@ void remove_all_marked(ObserverRecordList &observers, unsigned &marked_count) iter = observers.begin(); while (marked_count) { - iter = find_if_before(iter, observers.end(), is_marked); + iter = Algorithms::find_if_before(iter, observers.end(), is_marked); observers.erase_after(iter); --marked_count; } |
