aboutsummaryrefslogtreecommitdiffhomepage
path: root/intern.cpp
diff options
context:
space:
mode:
authorGravatar Łukasz Niemier <lukasz@niemier.pl>2012-11-18 11:23:22 +0100
committerGravatar Łukasz Niemier <lukasz@niemier.pl>2012-11-18 11:23:22 +0100
commit47df1ae40adecd0a02fc7dd06ab0745cb18c3fe0 (patch)
tree13bf3e8fdcae60fdfb5fa5e26c95818dc7a49790 /intern.cpp
parentb79854ad1aa814d9d35d76a1929b4726fa4bffa5 (diff)
Remove trailing whitespaces and change tabs to spaces
Diffstat (limited to 'intern.cpp')
-rw-r--r--intern.cpp16
1 files changed, 8 insertions, 8 deletions
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);
}