summaryrefslogtreecommitdiff
path: root/dxr3singleton.h
diff options
context:
space:
mode:
authorscop <scop>2005-04-19 18:19:34 +0000
committerscop <scop>2005-04-19 18:19:34 +0000
commitf9c59e544ada17055c3ed15b3d80f0d285c3928d (patch)
treecd7b038c17b040beb435e0a16aab02346854c9ad /dxr3singleton.h
parentdea137eddfe1017e9ff85a8c221aee2bca4647ad (diff)
downloadvdr-plugin-dxr3-f9c59e544ada17055c3ed15b3d80f0d285c3928d.tar.gz
vdr-plugin-dxr3-f9c59e544ada17055c3ed15b3d80f0d285c3928d.tar.bz2
Mass indentation/whitespace cleanup.
Diffstat (limited to 'dxr3singleton.h')
-rw-r--r--dxr3singleton.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/dxr3singleton.h b/dxr3singleton.h
index 8be1216..3639c93 100644
--- a/dxr3singleton.h
+++ b/dxr3singleton.h
@@ -21,32 +21,32 @@
#ifndef _DXR3_SINGLETON_H_
#define _DXR3_SINGLETON_H_
-
+
// ==================================
-//! A singleton template.
+//! A singleton template.
/*!
- Is a nice solution to use only
- one instance of a class.
+ Is a nice solution to use only
+ one instance of a class.
*/
template<typename T>
class Singleton
{
- protected:
- Singleton() {}
- virtual ~Singleton() {}
+protected:
+ Singleton() {}
+ virtual ~Singleton() {}
- public:
- static T& Instance()
- {
- static T m_Instance;
- return m_Instance;
- }
+public:
+ static T& Instance()
+ {
+ static T m_Instance;
+ return m_Instance;
+ }
- static T* InstanceP()
- {
- static T* m_InstanceP = new T;
- return m_InstanceP;
- }
+ static T* InstanceP()
+ {
+ static T* m_InstanceP = new T;
+ return m_InstanceP;
+ }
};
#endif /*_DXR3_SINGLETON_H_*/