aboutsummaryrefslogtreecommitdiffstats
path: root/typesystem.h
diff options
context:
space:
mode:
Diffstat (limited to 'typesystem.h')
-rw-r--r--typesystem.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/typesystem.h b/typesystem.h
index 65dd28a01..945461a2d 100644
--- a/typesystem.h
+++ b/typesystem.h
@@ -1718,10 +1718,17 @@ struct TypeRejection
class TypeDatabase
{
-public:
TypeDatabase();
+ TypeDatabase(const TypeDatabase&);
+ TypeDatabase& operator=(const TypeDatabase&);
+public:
- static TypeDatabase *instance();
+ /**
+ * Return the type system instance.
+ * \param newInstance This parameter is usefull just for unit testing, because singletons causes
+ * too many side effects on unit testing.
+ */
+ static TypeDatabase *instance(bool newInstance = false);
QStringList requiredTargetImports()
{