]> git.mxchange.org Git - simgear.git/blob - simgear/structure/StringTable.cxx
Boolean uniforms are now updatable by properties
[simgear.git] / simgear / structure / StringTable.cxx
1 #include "StringTable.hxx"
2
3 #include <simgear/threads/SGGuard.hxx>
4
5 namespace simgear
6 {
7 using namespace std;
8
9 const string* StringTable::insert(const string& str)
10 {
11     SGGuard<SGMutex> lock(_mutex);
12     StringContainer::iterator it = _strings.insert(str).first;
13     return &*it;
14 }
15 }