From 7f4deaf84782f5fe52a6ce8363b930bc7b89dba9 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Mon, 14 Nov 2022 03:38:27 +0100 Subject: [PATCH] update to the new pikotools api: change converting functions to the snake case --- src/dbconnector.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/dbconnector.cpp b/src/dbconnector.cpp index 1e02309..0a80e3f 100644 --- a/src/dbconnector.cpp +++ b/src/dbconnector.cpp @@ -773,56 +773,56 @@ void DbConnector::get_value(const char * value_str, bool & field_value, const FT void DbConnector::get_value(const char * value_str, short & field_value, const FT & field_type) { // IMPROVE ME give some overflow checking - field_value = (short)pt::Toi(value_str, 10); + field_value = (short)pt::to_i(value_str, 10); } void DbConnector::get_value(const char * value_str, unsigned short & field_value, const FT & field_type) { // IMPROVE ME give some overflow checking - field_value = (unsigned short)pt::Toui(value_str, 10); + field_value = (unsigned short)pt::to_ui(value_str, 10); } void DbConnector::get_value(const char * value_str, int & field_value, const FT & field_type) { // IMPROVE ME give some overflow checking - field_value = pt::Toi(value_str, 10); + field_value = pt::to_i(value_str, 10); } void DbConnector::get_value(const char * value_str, unsigned int & field_value, const FT & field_type) { // IMPROVE ME give some overflow checking - field_value = pt::Toui(value_str, 10); + field_value = pt::to_ui(value_str, 10); } void DbConnector::get_value(const char * value_str, long & field_value, const FT & field_type) { // IMPROVE ME give some overflow checking - field_value = pt::Tol(value_str, 10); + field_value = pt::to_l(value_str, 10); } void DbConnector::get_value(const char * value_str, unsigned long & field_value, const FT & field_type) { // IMPROVE ME give some overflow checking - field_value = pt::Toul(value_str, 10); + field_value = pt::to_ul(value_str, 10); } void DbConnector::get_value(const char * value_str, long long & field_value, const FT & field_type) { // IMPROVE ME give some overflow checking - field_value = pt::Toll(value_str, 10); + field_value = pt::to_ll(value_str, 10); } void DbConnector::get_value(const char * value_str, unsigned long long & field_value, const FT & field_type) { // IMPROVE ME give some overflow checking - field_value = pt::Toull(value_str, 10); + field_value = pt::to_ull(value_str, 10); }