ResourceModel: made m_db pointer non-modifieable by subclasses

Subclasses have to call ResourceModel::db() now in order to get the
pointer to the DB, the model is operating on.
This commit is contained in:
Tobias Doerffel
2009-08-17 17:14:03 +02:00
parent 3110e2188d
commit 26be3b0e81
2 changed files with 13 additions and 12 deletions

View File

@@ -73,6 +73,13 @@ public:
protected:
ResourceDB * db() const
{
return m_db;
}
private:
ResourceDB * m_db;