Mercurial > minori
diff include/core/torrent.h @ 369:47c9f8502269
*: clang-format all the things
I've edited the formatting a bit. Now pointer asterisks (and reference
ampersands) are on the variable instead of the type, as well as having
newlines for function braces (but nothing else)
author | Paper <paper@tflc.us> |
---|---|
date | Fri, 25 Jul 2025 10:16:02 -0400 |
parents | b1f625b0227c |
children |
line wrap: on
line diff
--- a/include/core/torrent.h Fri Jul 25 10:05:23 2025 -0400 +++ b/include/core/torrent.h Fri Jul 25 10:16:02 2025 -0400 @@ -26,20 +26,20 @@ std::string GetGuid() const { return _guid; }; QDateTime GetDate() const { return _date; }; - void SetTitle(const std::string& title) { _title = title; }; - void SetCategory(const std::string& category) { _category = category; }; - void SetEpisode(const std::string& episode) { _episode = episode; }; - void SetGroup(const std::string& group) { _group = group; }; + void SetTitle(const std::string &title) { _title = title; }; + void SetCategory(const std::string &category) { _category = category; }; + void SetEpisode(const std::string &episode) { _episode = episode; }; + void SetGroup(const std::string &group) { _group = group; }; void SetSize(const size_t size) { _size = size; }; - void SetResolution(const std::string& resolution) { _resolution = resolution; }; + void SetResolution(const std::string &resolution) { _resolution = resolution; }; void SetSeeders(const int seeders) { _seeders = seeders; }; void SetLeechers(const int leechers) { _leechers = leechers; }; void SetDownloads(const int downloads) { _downloads = downloads; }; - void SetDescription(const std::string& description) { _description = description; }; - void SetFilename(const std::string& filename) { _filename = filename; }; - void SetLink(const std::string& link) { _link = link; }; - void SetGuid(const std::string& guid) { _guid = guid; }; - void SetDate(const QDateTime& date) { _date = date; }; + void SetDescription(const std::string &description) { _description = description; }; + void SetFilename(const std::string &filename) { _filename = filename; }; + void SetLink(const std::string &link) { _link = link; }; + void SetGuid(const std::string &guid) { _guid = guid; }; + void SetDate(const QDateTime &date) { _date = date; }; private: std::string _title;