Commit cdc54788 authored by louiz’'s avatar louiz’

Fix all gcc warnings in the network module.

parent 2024502d
......@@ -178,7 +178,7 @@ std::vector<DbObject*> Database::get_objects(const std::string& columns,
return db_objects;
}
const bool Database::update(const DbObject* object, const std::string& table_name)
bool Database::update(const DbObject* object, const std::string& table_name)
{
std::string query = "INSERT INTO " + table_name;
std::string fields_str = "(";
......@@ -210,7 +210,7 @@ const bool Database::update(const DbObject* object, const std::string& table_nam
return true;
};
const bool Database::remove(const DbObject* object, const std::string& table_name)
bool Database::remove(const DbObject* object, const std::string& table_name)
{
std::string query = "DELETE FROM " + table_name + " WHERE ";
std::map<std::string, std::string>::const_iterator it;
......
......@@ -75,14 +75,14 @@ public:
* @param table The database table
* @return bool
*/
const bool update(const DbObject*, const std::string&);
bool update(const DbObject*, const std::string&);
/**
* Remove a database object.
* @param object The database object
* @param table The database table
* @return bool
*/
const bool remove(const DbObject*, const std::string&);
bool remove(const DbObject*, const std::string&);
private:
/**
......
......@@ -37,7 +37,7 @@ public:
* @param std::string& field
* @return const int
*/
const int get_int(const std::string&) const;
int get_int(const std::string&) const;
/**
* Get the date field value.
* @param std::string& field The field
......
......@@ -30,7 +30,7 @@ class CommandHandler
friend void TransferSender::send_next_chunk();
public:
CommandHandler();
~CommandHandler() {}
virtual ~CommandHandler() {}
void install_read_handler();
/**
......
......@@ -44,8 +44,8 @@ private:
TransferSender(const TransferSender&);
TransferSender& operator=(const TransferSender&);
const std::string filename;
RemoteClient* client;
const std::string filename;
std::ifstream file;
int length;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment