Changed a bunch of method names, including Singleton<>

This commit is contained in:
Kayne Ruse
2014-10-01 01:57:03 +10:00
parent 9b43b4641f
commit be9ce33637
5 changed files with 44 additions and 41 deletions
+2 -2
View File
@@ -33,13 +33,13 @@ public:
}
return *ptr;
}
static void Create() {
static void CreateSingleton() {
if (ptr) {
throw(std::logic_error("This singleton has already been created"));
}
ptr = new T();
}
static void Delete() {
static void DeleteSingleton() {
if (!ptr) {
throw(std::logic_error("A non-existant singleton cannot be deleted"));
}