From 5178870c9c7f80d0c6f1b715d0131320d8f5bc90 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Thu, 7 Apr 2011 19:18:41 +0300 Subject: [PATCH] Remove const qualifier from function definitions --- projects/stargazer/plugins/store/firebird/firebird_store.h | 6 +++--- .../plugins/store/firebird/firebird_store_utils.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/projects/stargazer/plugins/store/firebird/firebird_store.h b/projects/stargazer/plugins/store/firebird/firebird_store.h index 2bd094bd..73c2f19e 100644 --- a/projects/stargazer/plugins/store/firebird/firebird_store.h +++ b/projects/stargazer/plugins/store/firebird/firebird_store.h @@ -127,8 +127,8 @@ private: int SaveStat(const USER_STAT & stat, const std::string & login, int year = 0, int month = 0) const; }; -time_t ts2time_t(const IBPP::Timestamp & ts) const; -void time_t2ts(time_t t, IBPP::Timestamp * ts) const; -void ym2date(int year, int month, IBPP::Date * date) const; +time_t ts2time_t(const IBPP::Timestamp & ts); +void time_t2ts(time_t t, IBPP::Timestamp * ts); +void ym2date(int year, int month, IBPP::Date * date); #endif //FIREBIRD_STORE_H diff --git a/projects/stargazer/plugins/store/firebird/firebird_store_utils.cpp b/projects/stargazer/plugins/store/firebird/firebird_store_utils.cpp index 22feadf0..96eb817d 100644 --- a/projects/stargazer/plugins/store/firebird/firebird_store_utils.cpp +++ b/projects/stargazer/plugins/store/firebird/firebird_store_utils.cpp @@ -32,7 +32,7 @@ #include "stg/ibpp.h" //----------------------------------------------------------------------------- -time_t ts2time_t(const IBPP::Timestamp & ts) const +time_t ts2time_t(const IBPP::Timestamp & ts) { char buf[32]; int year, month, day, hour, min, sec; @@ -47,7 +47,7 @@ time_t ts2time_t(const IBPP::Timestamp & ts) const return mktime(&time_tm); } //----------------------------------------------------------------------------- -void time_t2ts(time_t t, IBPP::Timestamp * ts) const +void time_t2ts(time_t t, IBPP::Timestamp * ts) { struct tm res; @@ -56,7 +56,7 @@ void time_t2ts(time_t t, IBPP::Timestamp * ts) const *ts = IBPP::Timestamp(res.tm_year + 1900, res.tm_mon + 1, res.tm_mday, res.tm_hour, res.tm_min, res.tm_sec); } //----------------------------------------------------------------------------- -void ym2date(int year, int month, IBPP::Date * date) const +void ym2date(int year, int month, IBPP::Date * date) { date->SetDate(year + 1900, month + 1, 1); date->EndOfMonth(); -- 2.44.2