]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/firebird/firebird_store.cpp
Correction of adding parameters' values in methods USER_IMPL::Connect, USER_IMPL...
[stg.git] / projects / stargazer / plugins / store / firebird / firebird_store.cpp
index e5c7b0b16343ee2655b39f2a670bda0063f88a8a..9cc7c3048b3462d088cd91ee21c94c6f307f4603 100644 (file)
 #include "stg/plugin_creator.h"
 #include "firebird_store.h"
 
-using namespace std;
-
+namespace
+{
 PLUGIN_CREATOR<FIREBIRD_STORE> frsc;
+}
+
+extern "C" STORE * GetStore();
 //-----------------------------------------------------------------------------
 STORE * GetStore()
 {
@@ -69,13 +72,13 @@ db->Disconnect();
 //-----------------------------------------------------------------------------
 int FIREBIRD_STORE::ParseSettings()
 {
-vector<PARAM_VALUE>::iterator i;
-string s;
+std::vector<PARAM_VALUE>::iterator i;
+std::string s;
 
 for(i = settings.moduleParams.begin(); i != settings.moduleParams.end(); ++i)
     {
     s = i->param;
-    transform(s.begin(), s.end(), s.begin(), ToLower());
+    std::transform(s.begin(), s.end(), s.begin(), ToLower());
     if (s == "server")
         {
         db_server = *(i->value.begin());