[database] fix check build + cleanup
This commit is contained in:
@@ -85,7 +85,7 @@ Artist::getByFilter(Wt::Dbo::Session& session, SearchFilter filter, int offset,
|
||||
}
|
||||
|
||||
std::vector<Wt::Dbo::ptr<Release> >
|
||||
Artist::getReleases()
|
||||
Artist::getReleases() const
|
||||
{
|
||||
assert(self());
|
||||
assert(self()->id() != Wt::Dbo::dbo_traits<Artist>::invalidId() );
|
||||
|
||||
@@ -60,7 +60,7 @@ class Artist : public Wt::Dbo::Dbo<Artist>
|
||||
std::string getMBID(void) const { return _MBID; }
|
||||
|
||||
// Get the releases that have at least one track for this artist
|
||||
std::vector<Wt::Dbo::ptr<Release> > getReleases();
|
||||
std::vector<Wt::Dbo::ptr<Release> > getReleases() const;
|
||||
|
||||
void setMBID(std::string mbid) { _MBID = mbid; }
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ Release::getByFilter(Wt::Dbo::Session& session, SearchFilter filter, int offset,
|
||||
}
|
||||
|
||||
std::vector< Wt::Dbo::ptr<Artist> >
|
||||
Release::getArtists()
|
||||
Release::getArtists() const
|
||||
{
|
||||
assert(self());
|
||||
assert(self()->id() != Wt::Dbo::dbo_traits<Release>::invalidId() );
|
||||
|
||||
@@ -65,8 +65,8 @@ class Release : public Wt::Dbo::Dbo<Release>
|
||||
std::string getMBID() const { return _MBID; }
|
||||
bool isNone(void) const;
|
||||
boost::posix_time::time_duration getDuration(void) const;
|
||||
std::vector<Wt::Dbo::ptr<Artist> > getArtists(); // Get the artists of this release
|
||||
std::vector<Wt::Dbo::ptr<Track> > getTracks(); // Get the tracks of this release
|
||||
std::vector<Wt::Dbo::ptr<Artist> > getArtists() const; // Get the artists of this release
|
||||
std::vector<Wt::Dbo::ptr<Track> > getTracks() const; // Get the tracks of this release
|
||||
|
||||
void setMBID(std::string mbid) { _MBID = mbid; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user