diff options
author | Adam Szmigin <smidge@xsco.net> | 2019-08-26 22:35:05 +0100 |
---|---|---|
committer | Adam Szmigin <smidge@xsco.net> | 2019-08-26 22:35:05 +0100 |
commit | f5fd1b72a4d650ab13db8df9c08a4b2a3572c44d (patch) | |
tree | 2bb645f0973838d74fcc4a23482ba46241fc23b6 /include | |
parent | 1283369dccfe904bb1c42941c37434864792e23e (diff) |
Clang-format applied
Diffstat (limited to 'include')
-rw-r--r-- | include/djinterop/crate.hpp | 2 | ||||
-rw-r--r-- | include/djinterop/database.hpp | 2 | ||||
-rw-r--r-- | include/djinterop/enginelibrary.hpp | 5 | ||||
-rw-r--r-- | include/djinterop/exceptions.hpp | 7 |
4 files changed, 7 insertions, 9 deletions
diff --git a/include/djinterop/crate.hpp b/include/djinterop/crate.hpp index 94f73b8..8b197e7 100644 --- a/include/djinterop/crate.hpp +++ b/include/djinterop/crate.hpp @@ -131,7 +131,7 @@ public: /// /// If no such crate is found, then `nullopt` is returned. std::experimental::optional<crate> sub_crate_by_name( - const std::string& name) const; + const std::string& name) const; /// Returns the crate's contained tracks std::vector<track> tracks() const; diff --git a/include/djinterop/database.hpp b/include/djinterop/database.hpp index f52f9d0..d94769f 100644 --- a/include/djinterop/database.hpp +++ b/include/djinterop/database.hpp @@ -122,7 +122,7 @@ public: /// /// If no such crate exists, then `nullopt` is returned. std::experimental::optional<crate> root_crate_by_name( - const std::string& name) const; + const std::string& name) const; /// Returns all root crates contained in the database /// diff --git a/include/djinterop/enginelibrary.hpp b/include/djinterop/enginelibrary.hpp index 6b63901..831c59d 100644 --- a/include/djinterop/enginelibrary.hpp +++ b/include/djinterop/enginelibrary.hpp @@ -70,9 +70,8 @@ database create_database( /// database is returned. The boolean reference parameter `created` can be used /// to determine whether the database was created or merely loaded. database create_or_load_database( - std::string directory, - const semantic_version& schema_version, - bool &created); + std::string directory, const semantic_version& schema_version, + bool& created); /// Returns a boolean indicating whether an Engine Library already exists in a /// given directory. diff --git a/include/djinterop/exceptions.hpp b/include/djinterop/exceptions.hpp index 4386dc4..ff62315 100644 --- a/include/djinterop/exceptions.hpp +++ b/include/djinterop/exceptions.hpp @@ -109,10 +109,9 @@ class crate_invalid_name : public std::runtime_error { public: /// Construct the exception for a given crate name - explicit crate_invalid_name( - const std::string& what_arg, std::string name) noexcept - : runtime_error{what_arg.c_str()}, - name_{name} + explicit crate_invalid_name(const std::string& what_arg, std::string name) + noexcept : runtime_error{what_arg.c_str()}, + name_{name} { } |