From: Maxim Mamontov Date: Wed, 17 Sep 2014 06:33:12 +0000 (+0300) Subject: Added const qualifier. X-Git-Tag: 2.409~278 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/63a2f64ceecf37a319d20c4125f5f80483e013e8 Added const qualifier. --- diff --git a/projects/stargazer/tariffs_impl.cpp b/projects/stargazer/tariffs_impl.cpp index aee486d7..1a8ea359 100644 --- a/projects/stargazer/tariffs_impl.cpp +++ b/projects/stargazer/tariffs_impl.cpp @@ -253,7 +253,7 @@ WriteServLog("%s Tariff \'%s\' added.", return 0; } //----------------------------------------------------------------------------- -void TARIFFS_IMPL::GetTariffsData(std::list * tdl) +void TARIFFS_IMPL::GetTariffsData(std::list * tdl) const { assert(tdl != NULL && "Tariffs data list is not null"); STG_LOCKER lock(&mutex); diff --git a/projects/stargazer/tariffs_impl.h b/projects/stargazer/tariffs_impl.h index 37c76fc4..288f1225 100644 --- a/projects/stargazer/tariffs_impl.h +++ b/projects/stargazer/tariffs_impl.h @@ -63,7 +63,7 @@ public: void AddNotifierDel(NOTIFIER_BASE * notifier); void DelNotifierDel(NOTIFIER_BASE * notifier); - void GetTariffsData(std::list * tdl); + void GetTariffsData(std::list * tdl) const; const std::string & GetStrError() const { return strError; }