X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/c95017a05556ee19d801a680689511e4ca56bc1c..76dfa1976656bc8a0781050b675d9ea5875f8b1b:/projects/stargazer/plugins/store/firebird/firebird_store_services.cpp diff --git a/projects/stargazer/plugins/store/firebird/firebird_store_services.cpp b/projects/stargazer/plugins/store/firebird/firebird_store_services.cpp index f7167acb..6f6bee30 100644 --- a/projects/stargazer/plugins/store/firebird/firebird_store_services.cpp +++ b/projects/stargazer/plugins/store/firebird/firebird_store_services.cpp @@ -31,14 +31,14 @@ #include "stg/ibpp.h" //----------------------------------------------------------------------------- -int FIREBIRD_STORE::GetServicesList(vector * servicesList) const +int FIREBIRD_STORE::GetServicesList(std::vector * servicesList) const { STG_LOCKER lock(&mutex, __FILE__, __LINE__); IBPP::Transaction tr = IBPP::TransactionFactory(db, IBPP::amRead, til, tlr); IBPP::Statement st = IBPP::StatementFactory(db, tr); -string name; +std::string name; try { @@ -80,7 +80,7 @@ try where name = ?"); st->Set(1, sc.comment); st->Set(2, sc.cost); - st->Set(3, static_cast(sc.payDay)); + st->Set(3, static_cast(sc.payDay)); st->Set(4, sc.name); st->Execute(); tr->Commit(); @@ -98,7 +98,7 @@ return 0; } //----------------------------------------------------------------------------- int FIREBIRD_STORE::RestoreService(SERVICE_CONF * sc, - const string & name) const + const std::string & name) const { STG_LOCKER lock(&mutex, __FILE__, __LINE__); @@ -115,9 +115,9 @@ try { st->Get(3, sc->comment); st->Get(4, sc->cost); - long pd; + int16_t pd; st->Get(5, pd); - sc->payDay = pd; + sc->payDay = static_cast(pd); } else { @@ -140,7 +140,7 @@ catch (IBPP::Exception & ex) return 0; } //----------------------------------------------------------------------------- -int FIREBIRD_STORE::AddService(const string & name) const +int FIREBIRD_STORE::AddService(const std::string & name) const { STG_LOCKER lock(&mutex, __FILE__, __LINE__); @@ -168,7 +168,7 @@ catch (IBPP::Exception & ex) return 0; } //----------------------------------------------------------------------------- -int FIREBIRD_STORE::DelService(const string & name) const +int FIREBIRD_STORE::DelService(const std::string & name) const { STG_LOCKER lock(&mutex, __FILE__, __LINE__);