]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/firebird/firebird_store_corporations.cpp
Use std::jthread and C++17.
[stg.git] / projects / stargazer / plugins / store / firebird / firebird_store_corporations.cpp
index 3b9ad7855be42541e1b3e37bebb93154eecfd857..0d088759dca26b0f28aa255c9cce8e379943bdc9 100644 (file)
@@ -40,14 +40,13 @@ STG_LOCKER lock(&mutex);
 IBPP::Transaction tr = IBPP::TransactionFactory(db, IBPP::amRead, til, tlr);
 IBPP::Statement st = IBPP::StatementFactory(db, tr);
 
-std::string name;
-
 try
     {
     tr->Start();
     st->Execute("select name from tb_corporations");
     while (st->Fetch())
         {
+        std::string name;
         st->Get(1, name);
         corpsList->push_back(name);
         }