Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/freestyle/intern/system/TimeStamp.h')
-rw-r--r--source/blender/freestyle/intern/system/TimeStamp.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/freestyle/intern/system/TimeStamp.h b/source/blender/freestyle/intern/system/TimeStamp.h
index 2ebfb359dd5..6322ab3fd65 100644
--- a/source/blender/freestyle/intern/system/TimeStamp.h
+++ b/source/blender/freestyle/intern/system/TimeStamp.h
@@ -37,9 +37,7 @@ class LIB_SYSTEM_EXPORT TimeStamp
public:
static inline TimeStamp *instance()
{
- if (_instance == NULL)
- _instance = new TimeStamp;
- return _instance;
+ return &_instance;
}
inline unsigned getTimeStamp() const
@@ -66,7 +64,7 @@ protected:
TimeStamp(const TimeStamp&) {}
private:
- static TimeStamp *_instance;
+ static TimeStamp _instance;
unsigned _time_stamp;
};