diff options
author | randomdan <randomdan@localhost> | 2011-12-02 12:48:01 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2011-12-02 12:48:01 +0000 |
commit | 15e23e1a5248366f201a7b7a03ac6c5bd8858bc9 (patch) | |
tree | 9df39fe4fabbccd3eea53776f0ca57d8ef9d80b6 /project2/sql | |
parent | Remove excessive number of numeric type and correct implicit creation of bool... (diff) | |
download | project2-15e23e1a5248366f201a7b7a03ac6c5bd8858bc9.tar.bz2 project2-15e23e1a5248366f201a7b7a03ac6c5bd8858bc9.tar.xz project2-15e23e1a5248366f201a7b7a03ac6c5bd8858bc9.zip |
Remove no longer required type handlers
Diffstat (limited to 'project2/sql')
-rw-r--r-- | project2/sql/sqlVariableBinder.cpp | 42 | ||||
-rw-r--r-- | project2/sql/sqlVariableBinder.h | 10 |
2 files changed, 2 insertions, 50 deletions
diff --git a/project2/sql/sqlVariableBinder.cpp b/project2/sql/sqlVariableBinder.cpp index 1ff8170..c56047c 100644 --- a/project2/sql/sqlVariableBinder.cpp +++ b/project2/sql/sqlVariableBinder.cpp @@ -20,42 +20,7 @@ SqlVariableBinder::operator()(const Glib::ustring & i) const cmd->bindParamS(idx, i); } void -SqlVariableBinder::operator()(const long long unsigned int & i) const -{ - cmd->bindParamI(idx, i); -} -void -SqlVariableBinder::operator()(const long unsigned int & i) const -{ - cmd->bindParamI(idx, i); -} -void -SqlVariableBinder::operator()(const unsigned int & i) const -{ - cmd->bindParamI(idx, i); -} -void -SqlVariableBinder::operator()(const short unsigned int & i) const -{ - cmd->bindParamI(idx, i); -} -void -SqlVariableBinder::operator()(const long long int & i) const -{ - cmd->bindParamI(idx, i); -} -void -SqlVariableBinder::operator()(const long int & i) const -{ - cmd->bindParamI(idx, i); -} -void -SqlVariableBinder::operator()(const int & i) const -{ - cmd->bindParamI(idx, i); -} -void -SqlVariableBinder::operator()(const short int & i) const +SqlVariableBinder::operator()(const int64_t & i) const { cmd->bindParamI(idx, i); } @@ -65,11 +30,6 @@ SqlVariableBinder::operator()(const double & i) const cmd->bindParamF(idx, i); } void -SqlVariableBinder::operator()(const float & i) const -{ - cmd->bindParamF(idx, i); -} -void SqlVariableBinder::operator()(const Boolean & i) const { cmd->bindParamI(idx, i.value ? 1 : 0); diff --git a/project2/sql/sqlVariableBinder.h b/project2/sql/sqlVariableBinder.h index 3d68773..476c63b 100644 --- a/project2/sql/sqlVariableBinder.h +++ b/project2/sql/sqlVariableBinder.h @@ -16,16 +16,8 @@ class SqlVariableBinder : public boost::static_visitor<> { void operator()(const Null & i) const; void operator()(const Boolean & i) const; void operator()(const Glib::ustring & i) const; - void operator()(const long long unsigned int & i) const; - void operator()(const long unsigned int & i) const; - void operator()(const unsigned int & i) const; - void operator()(const short unsigned int & i) const; - void operator()(const long long int & i) const; - void operator()(const long int & i) const; - void operator()(const int & i) const; - void operator()(const short int & i) const; + void operator()(const int64_t & i) const; void operator()(const double & i) const; - void operator()(const float & i) const; void operator()(const boost::posix_time::ptime & i) const; private: |