summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/avgdvg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/avgdvg.cpp')
-rw-r--r--src/mame/video/avgdvg.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/mame/video/avgdvg.cpp b/src/mame/video/avgdvg.cpp
index 91193e027d4..188bf61c4de 100644
--- a/src/mame/video/avgdvg.cpp
+++ b/src/mame/video/avgdvg.cpp
@@ -130,18 +130,11 @@ void avgdvg_device_base::vg_flush()
cy0 = m_vectbuf[i].y;
cx1 = m_vectbuf[i].arg1;
cy1 = m_vectbuf[i].arg2;
+ using std::swap;
if (cx0 > cx1)
- {
- const int t = cx1;
- cx1 = cx0;
- cx0 = t;
- }
+ swap(cx0, cx1);
if (cy0 > cy1)
- {
- const int t = cy1;
- cy1 = cy0;
- cy0 = t;
- }
+ swap(cy0, cy1);
}
}