mirror of
https://github.com/SWG-Source/src.git
synced 2026-09-28 15:12:53 -04:00
persister cleanup (still broke but logic is there for when it isn't); also replace all the SOE BS for forwarding stl port with native object classes because i thought that may be part of the problem...
This commit is contained in:
@@ -161,8 +161,7 @@ void LocalizationManager::install (AbstractFileFactory * fileFactory, Unicode::U
|
||||
|
||||
ms_singletonHashMap = new LocalizationManagerHashMap();
|
||||
|
||||
Unicode::UnicodeNarrowStringVector::const_iterator end = localeNameMap.end();
|
||||
for ( Unicode::UnicodeNarrowStringVector::const_iterator iter = localeNameMap.begin(); iter != end; ++iter )
|
||||
for (auto iter = localeNameMap.begin(); iter != localeNameMap.end(); ++iter )
|
||||
{
|
||||
Unicode::NarrowString localeName = (*iter);
|
||||
LocalizationManager * localizationManager = new LocalizationManager (fileFactory, localeName, debugBadStringsFunc, displayBadStringIds);
|
||||
|
||||
+3
-12
@@ -18,27 +18,18 @@
|
||||
#endif
|
||||
|
||||
#include <cstring>
|
||||
#include <vector>
|
||||
|
||||
#include "Unicode.h"
|
||||
#include "utf8.h"
|
||||
|
||||
namespace std
|
||||
{
|
||||
template <class _Tp, class _Alloc> class vector;
|
||||
}
|
||||
|
||||
template <class _Tp, class _Alloc = std::allocator<_Tp> > struct unicode_stdvector
|
||||
{
|
||||
typedef std::vector<_Tp, _Alloc> fwd;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------
|
||||
|
||||
namespace Unicode
|
||||
{
|
||||
typedef std::string UTF8String;
|
||||
typedef unicode_stdvector<Unicode::String>::fwd UnicodeStringVector;
|
||||
typedef unicode_stdvector<Unicode::NarrowString>::fwd UnicodeNarrowStringVector;
|
||||
typedef std::vector<Unicode::String> UnicodeStringVector;
|
||||
typedef std::vector<Unicode::NarrowString> UnicodeNarrowStringVector;
|
||||
|
||||
String narrowToWide (const char * const nstr);
|
||||
String narrowToWide (const NarrowString & nstr);
|
||||
|
||||
Reference in New Issue
Block a user