summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/rendlay.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-08-30 01:31:23 +1000
committer Vas Crabb <vas@vastheman.com>2016-08-30 01:31:23 +1000
commit46bf1ce04bf75f7e5e613a993ac0cf1859b068ec (patch)
tree8e071c12fb7edfd77494d3cd97fbf154a87087c5 /src/emu/rendlay.cpp
parent7c6a527e2630f9317e2941ea991e8d7df1282544 (diff)
More cleanup on the back of Osso's fix for a7e393b36b57cead61978f332135a509b2ddc82a (nw)
* Make iterators actually meet requirements of ForwardIterator (and by consequence, ForwardIterator, Iterator and EqualityComparable) * Don't use function statics if they can be avoided - it isn't thread-safe * Remove leftover crud from when dynamic_buffer and friends were templates in lib/util It's still dangerous that the const behaviour of iterators doesn't match STL. Also, simple_list members with similar functionality to STL container members should be renamed.
Diffstat (limited to 'src/emu/rendlay.cpp')
-rw-r--r--src/emu/rendlay.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/rendlay.cpp b/src/emu/rendlay.cpp
index 4608897be5c..5a8b5dd3531 100644
--- a/src/emu/rendlay.cpp
+++ b/src/emu/rendlay.cpp
@@ -2208,6 +2208,8 @@ void layout_element::component::apply_skew(bitmap_argb32 &dest, int skewwidth)
// LAYOUT VIEW
//**************************************************************************
+const simple_list<layout_view::item> layout_view::s_null_list;
+
//-------------------------------------------------
// layout_view - constructor
//-------------------------------------------------
@@ -2270,8 +2272,6 @@ layout_view::~layout_view()
const simple_list<layout_view::item> &layout_view::items(item_layer layer) const
{
- static simple_list<item> s_null_list;
-
switch (layer)
{
case ITEM_LAYER_BACKDROP: return m_backdrop_list;