summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/thread_none.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread_none.cpp b/src/thread_none.cpp
index f0863efaf..c8caf8978 100644
--- a/src/thread_none.cpp
+++ b/src/thread_none.cpp
@@ -12,7 +12,7 @@
}
/** Mutex that doesn't do locking because it ain't needed when there're no threads */
-class ThreadMutex_None : ThreadMutex {
+class ThreadMutex_None : public ThreadMutex {
public:
virtual void BeginCritical() {}
virtual void EndCritical() {}
@@ -20,5 +20,5 @@ public:
/* static */ ThreadMutex *ThreadMutex::New()
{
- return new ThreadMutex_None;
+ return new ThreadMutex_None();
}