summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/device.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/device.cpp')
-rw-r--r--src/emu/device.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/emu/device.cpp b/src/emu/device.cpp
index 5dc0366d99e..934c05ddcd7 100644
--- a/src/emu/device.cpp
+++ b/src/emu/device.cpp
@@ -879,16 +879,15 @@ std::string device_t::subtag(std::string _tag) const
{
const char *tag = _tag.c_str();
std::string result;
- // if the tag begins with a colon, ignore our path and start from the root
if (*tag == ':')
{
+ // if the tag begins with a colon, ignore our path and start from the root
tag++;
result.assign(":");
}
-
- // otherwise, start with our path
else
{
+ // otherwise, start with our path
result.assign(m_tag);
if (result != ":")
result.append(":");