From 47df1ae40adecd0a02fc7dd06ab0745cb18c3fe0 Mon Sep 17 00:00:00 2001 From: Ɓukasz Niemier Date: Sun, 18 Nov 2012 11:23:22 +0100 Subject: Remove trailing whitespaces and change tabs to spaces --- intern.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'intern.cpp') diff --git a/intern.cpp b/intern.cpp index 87480ea1..015182cb 100644 --- a/intern.cpp +++ b/intern.cpp @@ -45,17 +45,17 @@ static pthread_mutex_t intern_lock = PTHREAD_MUTEX_INITIALIZER; static const wchar_t *intern_with_dup( const wchar_t *in, bool dup ) { - if( !in ) - return NULL; - -// debug( 0, L"intern %ls", in ); + if( !in ) + return NULL; + +// debug( 0, L"intern %ls", in ); scoped_lock lock(intern_lock); const wchar_t *result; - + #if USE_SET string_table_t::const_iterator iter = string_table.find(in); if (iter != string_table.end()) { - result = *iter; + result = *iter; } else { result = dup ? wcsdup(in) : in; string_table.insert(result); @@ -74,11 +74,11 @@ static const wchar_t *intern_with_dup( const wchar_t *in, bool dup ) const wchar_t *intern( const wchar_t *in ) { - return intern_with_dup(in, true); + return intern_with_dup(in, true); } const wchar_t *intern_static( const wchar_t *in ) { - return intern_with_dup(in, false); + return intern_with_dup(in, false); } -- cgit v1.2.3