Fixed potential void-safety issue in descendants related to initialization of router and filter.

This commit is contained in:
2016-12-01 18:14:07 +01:00
parent 2fbffd0c1e
commit 72a40a2673

View File

@@ -29,21 +29,29 @@ inherit
feature {NONE} -- Initialize feature {NONE} -- Initialize
initialize initialize
do
create_filtered_router
initialize_filtered_router
end
create_filtered_router
-- Create `router` and `filter`.
do
create_router
create_filter
end
initialize_filtered_router
-- Initialize `router` and `filter`.
local local
f: like filter f: like filter
do do
Precursor {WSF_ROUTED_EXECUTION} initialize_router
Precursor {WSF_FILTERED_EXECUTION} initialize_filter
-- Current is a WSF_FILTER as well in order to call the router -- Current is a WSF_FILTER as well in order to call the router
-- let's add Current at the end of the filter chain. -- let's add Current at the end of the filter chain.
from append_filter (Current)
f := filter
until
not attached f.next as l_next
loop
f := l_next
end
f.set_next (Current)
end end
feature -- Execute Filter feature -- Execute Filter