diff options
author | David Robillard <d@drobilla.net> | 2019-12-08 19:35:53 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-12-08 20:59:06 +0100 |
commit | e80baa41db344e2800ab54d638a4e9b69aa86374 (patch) | |
tree | 0b337b4714f2ea59b8c525779adbee430314c50a /src/Forge.cpp | |
parent | 4257d61b3622b1fe0ed8d67d14c6b204661a82d3 (diff) | |
download | ingen-e80baa41db344e2800ab54d638a4e9b69aa86374.tar.gz ingen-e80baa41db344e2800ab54d638a4e9b69aa86374.tar.bz2 ingen-e80baa41db344e2800ab54d638a4e9b69aa86374.zip |
Cleanup: Merge branches with identical bodies
Diffstat (limited to 'src/Forge.cpp')
-rw-r--r-- | src/Forge.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Forge.cpp b/src/Forge.cpp index 00194ce9..90106ad5 100644 --- a/src/Forge.cpp +++ b/src/Forge.cpp @@ -48,7 +48,7 @@ Forge::str(const Atom& atom, bool quoted) ss << atom.get<float>(); } else if (atom.type() == Bool) { ss << (atom.get<int32_t>() ? "true" : "false"); - } else if (atom.type() == URI) { + } else if (atom.type() == URI || atom.type() == Path) { ss << (quoted ? "<" : "") << atom.ptr<const char>() << (quoted ? ">" : ""); @@ -56,10 +56,6 @@ Forge::str(const Atom& atom, bool quoted) ss << (quoted ? "<" : "") << _map.unmap_uri(atom.get<int32_t>()) << (quoted ? ">" : ""); - } else if (atom.type() == Path) { - ss << (quoted ? "<" : "") - << atom.ptr<const char>() - << (quoted ? ">" : ""); } else if (atom.type() == String) { ss << (quoted ? "\"" : "") << atom.ptr<const char>() |