From 9e50610608a5c4f630a1cfbb7758d9b8a51a6986 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Tue, 23 Apr 2013 20:32:41 +1000 Subject: [PATCH] add static so multiple files can each have their own Pool() --- code/Rufl/hfile.cpp | 2 +- code/Rufl/hstring.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/Rufl/hfile.cpp b/code/Rufl/hfile.cpp index 5642cec..a72591d 100644 --- a/code/Rufl/hfile.cpp +++ b/code/Rufl/hfile.cpp @@ -60,7 +60,7 @@ struct SOpenFile }; typedef ratl::handle_pool_vs TFilePool; -TFilePool& Pool() +static TFilePool& Pool() { static TFilePool TFP; return TFP; diff --git a/code/Rufl/hstring.cpp b/code/Rufl/hstring.cpp index a00e7a1..e198411 100644 --- a/code/Rufl/hstring.cpp +++ b/code/Rufl/hstring.cpp @@ -43,7 +43,7 @@ typedef ratl::hash_pool TStrPool; -TStrPool& Pool() +static TStrPool& Pool() { static TStrPool TSP; return TSP;