Skip to content
Snippets Groups Projects
Commit 137f785b authored by Steven Murray's avatar Steven Murray
Browse files

Added -Wshadow compile option to rdbms directory

parent df4bef50
Branches
Tags
No related merge requests found
......@@ -15,6 +15,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
cmake_minimum_required (VERSION 2.6)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wshadow")
find_package (sqlite REQUIRED)
# OCCI support is on by default
......
......@@ -34,14 +34,14 @@ const char *Login::s_fileFormat = "either in_memory or oracle:username/password@
// constructor
//------------------------------------------------------------------------------
Login::Login(
const DbType dbType,
const std::string &username,
const std::string &password,
const std::string &database):
dbType(dbType),
username(username),
password(password),
database(database) {
const DbType type,
const std::string &user,
const std::string &passwd,
const std::string &db):
dbType(type),
username(user),
password(passwd),
database(db) {
}
//------------------------------------------------------------------------------
......
......@@ -43,16 +43,16 @@ struct Login {
/**
* Constructor.
*
* @param dbType The type of the database.
* @param username The username.
* @param password The password.
* @param database The database name.
* @param type The type of the database.
* @param user The username.
* @param passwd The password.
* @param db The database name.
*/
Login(
const DbType dbType,
const std::string &username,
const std::string &password,
const std::string &database);
const DbType type,
const std::string &user,
const std::string &passwd,
const std::string &db);
/**
* The type of the database.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment