diff options
author | David Robillard <d@drobilla.net> | 2022-09-27 18:35:31 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-09-27 18:36:33 -0400 |
commit | 92cf4f1e48a90d8622f237a732b08487e0cde46c (patch) | |
tree | 9b9cdeeb50b14bf8d64e2c6e914573303a7cc61c /src/AtomReader.cpp | |
parent | 3ae3c86937c7ffc45d24e36a33560cd63ebb900b (diff) | |
download | ingen-92cf4f1e48a90d8622f237a732b08487e0cde46c.tar.gz ingen-92cf4f1e48a90d8622f237a732b08487e0cde46c.tar.bz2 ingen-92cf4f1e48a90d8622f237a732b08487e0cde46c.zip |
Use braced init lists to avoid repeating return types
Diffstat (limited to 'src/AtomReader.cpp')
-rw-r--r-- | src/AtomReader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/AtomReader.cpp b/src/AtomReader.cpp index 761c271b..ac52082f 100644 --- a/src/AtomReader.cpp +++ b/src/AtomReader.cpp @@ -83,7 +83,7 @@ boost::optional<URI> AtomReader::atom_to_uri(const LV2_Atom* atom) { if (!atom) { - return boost::optional<URI>(); + return {}; } if (atom->type == _uris.atom_URI) { @@ -112,7 +112,7 @@ AtomReader::atom_to_uri(const LV2_Atom* atom) _log.warn("Unknown URID %1%\n", str); } - return boost::optional<URI>(); + return {}; } boost::optional<raul::Path> @@ -122,7 +122,7 @@ AtomReader::atom_to_path(const LV2_Atom* atom) if (uri && uri_is_path(*uri)) { return uri_to_path(*uri); } - return boost::optional<raul::Path>(); + return {}; } Resource::Graph |