Replaced tabs with spaces.

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1132 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
rich_sposato 2011-10-03 05:01:16 +00:00
parent 965a15a5f0
commit 6b42268ba9

View file

@ -93,9 +93,11 @@ void LockableObject::DoSomething( void)
void LockableObject::Print( unsigned int threadIndex )
{
assert( NULL != this );
const char * message = ( threadIndex != m_value ) ? "Mismatch!" : "";
::Loki::Printf( "Object: [%u] Thread: [%u] Value: [%u] %s\n" )
( m_index )( threadIndex )( m_value )( message );
const char * result = ( threadIndex != m_value ) ? "Mismatch!" : "";
::std::string message;
::Loki::SPrintf( message, "Object: [%u] Thread: [%u] Value: [%u] %s\n" )
( m_index )( threadIndex )( m_value )( result );
cout << message;
}
// ----------------------------------------------------------------------------
@ -199,6 +201,8 @@ public:
void Print( unsigned int threadIndex );
private:
/// Assignment operator is not implemented.
LockableClass & operator = ( const LockableClass & );
const unsigned int m_index;
};