diff options
author | Joerg Bornemann <joerg.bornemann@digia.com> | 2014-02-27 17:35:52 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2014-02-28 12:42:44 +0100 |
commit | 85b234c3a0a4d1c40dd509f8a1a24907eea7d2ba (patch) | |
tree | f547648f13239d9fea0eccfe12fd840a55dde0d3 /src/lib/corelib/language/resolvedfilecontext.h | |
parent | 08a4a71c7ced7b799e4b706377a39a5146431c38 (diff) |
give FileContext and ResolvedFileContext a common base
Change-Id: I76f0e5e0b9f99a6f33c3381436ee6c4879e36a68
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'src/lib/corelib/language/resolvedfilecontext.h')
-rw-r--r-- | src/lib/corelib/language/resolvedfilecontext.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/corelib/language/resolvedfilecontext.h b/src/lib/corelib/language/resolvedfilecontext.h index 66266181e..db5df5089 100644 --- a/src/lib/corelib/language/resolvedfilecontext.h +++ b/src/lib/corelib/language/resolvedfilecontext.h @@ -31,13 +31,14 @@ #define QBS_RESOLVEDFILECONTEXT_H #include "forward_decls.h" +#include "filecontextbase.h" #include "jsimports.h" #include <tools/persistentobject.h> namespace qbs { namespace Internal { -class ResolvedFileContext : public PersistentObject +class ResolvedFileContext : public FileContextBase, public PersistentObject { public: static ResolvedFileContextPtr create() @@ -45,12 +46,14 @@ public: return ResolvedFileContextPtr(new ResolvedFileContext); } - QString filePath; - QStringList jsExtensions; - JsImports jsImports; + static ResolvedFileContextPtr create(const FileContextBase &baseContext) + { + return ResolvedFileContextPtr(new ResolvedFileContext(baseContext)); + } private: ResolvedFileContext() {} + ResolvedFileContext(const FileContextBase &ctx); void load(PersistentPool &pool); void store(PersistentPool &pool) const; |