Namespace KiGfx->KIGFX.

template<> -> template <>
Some more reformatting according to uncrustify results.
This commit is contained in:
Maciej Suminski
2013-10-14 16:13:35 +02:00
parent 8253899a70
commit e66a4ce337
139 changed files with 1120 additions and 965 deletions
+16 -15
View File
@@ -5,14 +5,15 @@
using namespace std;
class MyClass {
public:
int MyMethod(const string &arg)
{
printf("MyClass(this = %p)::MyMethod() called with string '%s', length %d\n", this, arg.c_str(), arg.length());
return arg.length();
}
class MyClass
{
public:
int MyMethod( const string& arg )
{
printf( "MyClass(this = %p)::MyMethod() called with string '%s', length %d\n", this,
arg.c_str(), arg.length() );
return arg.length();
}
};
typedef DELEGATE<int, const string&> MyDelegate;
@@ -22,14 +23,14 @@ main()
MyClass t1;
MyClass t2;
MyDelegate ptr1( &t1, &MyClass::MyMethod );
MyDelegate ptr2( &t2, &MyClass::MyMethod );
MyDelegate ptr1 (&t1, &MyClass::MyMethod);
MyDelegate ptr2 (&t2, &MyClass::MyMethod);
int retval1, retval2;
int retval1, retval2;
retval1 = ptr1("apples");
retval2 = ptr2("cherries");
retval1 = ptr1( "apples" );
retval2 = ptr2( "cherries" );
printf("Object 1 returned %d, object 2 returned %d\n", retval1, retval2);
return 0;
printf( "Object 1 returned %d, object 2 returned %d\n", retval1, retval2 );
return 0;
}