Store SourceInfo as direct member

This commit is contained in:
John Firebaugh
2014-11-25 18:09:38 -08:00
parent 41e90b4150
commit 167097936a
3 changed files with 8 additions and 15 deletions

View File

@@ -29,16 +29,11 @@ public:
};
class StyleSource : public std::enable_shared_from_this<StyleSource> {
class StyleSource : private util::noncopyable {
public:
util::ptr<SourceInfo> info;
SourceInfo info;
bool enabled = false;
util::ptr<Source> source;
StyleSource(const util::ptr<SourceInfo> &info_)
: info(info_)
{}
};
}