summaryrefslogtreecommitdiffstats
path: root/smubermodelsingleton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'smubermodelsingleton.cpp')
-rw-r--r--smubermodelsingleton.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/smubermodelsingleton.cpp b/smubermodelsingleton.cpp
new file mode 100644
index 0000000..ef3d1e3
--- /dev/null
+++ b/smubermodelsingleton.cpp
@@ -0,0 +1,18 @@
+/*
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ as published by the Free Software Foundation; either version
+ 2 of the License, or (at your option) any later version.
+*/
+
+#include "smubermodelsingleton.h"
+#include "smubermodel.h"
+
+SmUberModel *SmUberModelSingleton::mInstance = 0;
+
+SmUberModel *SmUberModelSingleton::instance(){
+ if(!mInstance){
+ mInstance = new SmUberModel;
+ }
+ return mInstance;
+}