diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-01-07 14:59:04 +0100 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-01-07 14:59:04 +0100 |
commit | b97736a0a89ecbc3aa2ece133cc0a4839bd1e043 (patch) | |
tree | e4e5ae12f626bbabf8f469491d4a07b76418616e /Makefile | |
parent | b17bb75da5810312f1c29d93d92931a4a0fc87f5 (diff) | |
download | vdr-plugin-dxr3-b97736a0a89ecbc3aa2ece133cc0a4839bd1e043.tar.gz vdr-plugin-dxr3-b97736a0a89ecbc3aa2ece133cc0a4839bd1e043.tar.bz2 |
better singleton template
With the old singleton pattern it could happen that two instances are
created. See...
static T& Instance()
{
static T m_Instance;
return m_Instance;
}
static T* InstanceP()
{
static T* m_InstanceP = new T;
return m_InstanceP;
}
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -20,10 +20,10 @@ CXXFLAGS = -O2 -Wall -Woverloaded-virtual ### The directory environment: -VDRDIR = ../../.. -LIBDIR = ../../lib +VDRDIR = /usr/include/vdr +LIBDIR = . TMPDIR = /tmp -FFMDIR = /usr/local/include/ffmpeg +FFMDIR = /usr//include/libavcodec EM8300 = /usr/include ### Allow user defined options to overwrite defaults: |