summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-06-19 00:36:18 +0200
committerCarl Hetherington <cth@carlh.net>2025-07-03 22:45:18 +0200
commit0b59ba50b8f3cc864f09c5b426e16024d15581ee (patch)
tree976e27822c33cd6739857504e4bcc093c3fd01b9 /src
parent5361802a4f7b269d1c12e2d01c4363177185d35a (diff)
White space: spl.{cc,h}3040-playlist-cpl
Diffstat (limited to 'src')
-rw-r--r--src/lib/spl.h45
1 files changed, 22 insertions, 23 deletions
diff --git a/src/lib/spl.h b/src/lib/spl.h
index ea5c32974..b010a4bed 100644
--- a/src/lib/spl.h
+++ b/src/lib/spl.h
@@ -35,29 +35,28 @@ class ContentStore;
class SPL
{
public:
- SPL ()
- : _id (dcp::make_uuid())
+ SPL()
+ : _id(dcp::make_uuid())
{}
- SPL (std::string name)
- : _id (dcp::make_uuid())
- , _name (name)
+ SPL(std::string name)
+ : _id(dcp::make_uuid())
+ , _name(name)
{}
-
- void add (SPLEntry e) {
- _spl.push_back (e);
+ void add(SPLEntry e) {
+ _spl.push_back(e);
}
- void remove (std::size_t index) {
- _spl.erase (_spl.begin() + index);
+ void remove(std::size_t index) {
+ _spl.erase(_spl.begin() + index);
}
- std::vector<SPLEntry> const & get () const {
+ std::vector<SPLEntry> const & get() const {
return _spl;
}
- SPLEntry const & operator[] (std::size_t index) const {
+ SPLEntry const & operator[](std::size_t index) const {
return _spl[index];
}
@@ -65,22 +64,22 @@ public:
std::iter_swap(_spl.begin() + a, _spl.begin() + b);
}
- void read (boost::filesystem::path path, ContentStore* store);
- void write (boost::filesystem::path path) const;
+ void read(boost::filesystem::path path, ContentStore* store);
+ void write(boost::filesystem::path path) const;
- std::string id () const {
+ std::string id() const {
return _id;
}
- std::string name () const {
+ std::string name() const {
return _name;
}
- void set_name (std::string name) {
+ void set_name(std::string name) {
_name = name;
}
- bool missing () const {
+ bool missing() const {
return _missing;
}
@@ -101,14 +100,14 @@ public:
CONTENT,
};
- SignalSPL () {}
+ SignalSPL() {}
- SignalSPL (std::string name)
- : SPL (name)
+ SignalSPL(std::string name)
+ : SPL(name)
{}
- void set_name (std::string name) {
- SPL::set_name (name);
+ void set_name(std::string name) {
+ SPL::set_name(name);
Changed(Change::NAME);
}