replace tabs with 4 spaces
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@681 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
30f4e933c1
commit
fd6b9484ee
16 changed files with 210 additions and 210 deletions
|
@ -32,15 +32,15 @@ Test for singletons in a shared libraries:
|
|||
|
||||
int main()
|
||||
{
|
||||
Foo& foo = Singleton<Foo>::Instance();
|
||||
Foo& lokifoo = Loki::Singleton<Foo>::Instance();
|
||||
foo.foo();
|
||||
lokifoo.foo();
|
||||
Foo& foo = Singleton<Foo>::Instance();
|
||||
Foo& lokifoo = Loki::Singleton<Foo>::Instance();
|
||||
foo.foo();
|
||||
lokifoo.foo();
|
||||
|
||||
|
||||
#if defined(__BORLANDC__) || defined(_MSC_VER)
|
||||
system("PAUSE");
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -21,5 +21,5 @@ Foo::Foo()
|
|||
|
||||
void Foo::foo()
|
||||
{
|
||||
std::cout << "\nFoo:foo() called, this: " << this << "\n";
|
||||
std::cout << "\nFoo:foo() called, this: " << this << "\n";
|
||||
}
|
||||
|
|
|
@ -21,9 +21,9 @@
|
|||
class FOO_EXPORT Foo
|
||||
{
|
||||
public:
|
||||
Foo();
|
||||
Foo();
|
||||
|
||||
void foo();
|
||||
void foo();
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -22,12 +22,12 @@ typedef Loki::SingletonHolder<Foo> FooSingleton;
|
|||
LOKI_SINGLETON_INSTANCE_DEFINITION(FooSingleton)
|
||||
/*
|
||||
namespace Loki
|
||||
{
|
||||
template<>
|
||||
FooSingleton::ObjectType& Singleton<FooSingleton::ObjectType>::Instance()
|
||||
{
|
||||
{
|
||||
template<>
|
||||
FooSingleton::ObjectType& Singleton<FooSingleton::ObjectType>::Instance()
|
||||
{
|
||||
return FooSingleton::Instance();
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
|
@ -35,7 +35,7 @@ namespace Loki
|
|||
template<>
|
||||
Foo& Singleton<Foo>::Instance()
|
||||
{
|
||||
return FooSingleton::Instance();
|
||||
return FooSingleton::Instance();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ template<class T>
|
|||
class Singleton
|
||||
{
|
||||
public:
|
||||
static T& Instance();
|
||||
static T& Instance();
|
||||
};
|
||||
|
||||
template class SINGLETONDLL_EXPORT Singleton<Foo>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue