1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-19 06:50:07 +03:00

Feature #4238: Use standard namespace explicitely

This commit is contained in:
Jaime Melis 2015-12-22 16:49:36 +01:00
parent 77ba16bf56
commit d22c6588de
3 changed files with 12 additions and 10 deletions

View File

@ -501,11 +501,11 @@ public:
* Gets a DS configuration attribute
*/
int get_ds_conf_attribute(
const string& ds_name,
const std::string& ds_name,
const VectorAttribute* &value) const
{
vector<const Attribute*>::const_iterator it;
vector<const Attribute*> values;
std::vector<const Attribute*>::const_iterator it;
std::vector<const Attribute*> values;
std::string template_ds_name;
std::string ds_name_upper;

View File

@ -153,17 +153,19 @@ void OpenNebulaTemplate::set_multiple_conf_default()
void OpenNebulaTemplate::register_multiple_conf_default(
const std::string& conf_section)
{
string defaults_name, attributes_name;
std::string defaults_name, attributes_name;
Attribute * defaults_value;
bool found;
const VectorAttribute* defaults_attr;
const VectorAttribute* attributes_attr;
map<string, Attribute *>::iterator iter_defaults, prev;
std::map<std::string, Attribute *>::iterator iter_defaults, prev;
vector<const Attribute*>::const_iterator iter_attributes;
vector<const Attribute*> attributes_values;
std::vector<const Attribute*>::const_iterator iter_attributes;
std::vector<const Attribute*> attributes_values;
get(conf_section.c_str(), attributes_values);
@ -242,7 +244,7 @@ void OpenNebulaTemplate::set_conf_ds(const std::string& name,
const std::string& persistent_only)
{
VectorAttribute * vattribute;
map<string,string> vvalue;
std::map<std::string,std::string> vvalue;
vvalue.insert(make_pair("NAME", name));
vvalue.insert(make_pair("REQUIRED_ATTRS", required_attrs));
@ -261,7 +263,7 @@ void OpenNebulaTemplate::set_conf_tm(const std::string& name,
const std::string& ds_migrate)
{
VectorAttribute * vattribute;
map<string,string> vvalue;
std::map<std::string,std::string> vvalue;
vvalue.insert(make_pair("NAME", name));
vvalue.insert(make_pair("LN_TARGET", ln_target));

View File

@ -482,7 +482,7 @@ void ImageAllocate::request_execute(xmlrpc_c::paramList const& params,
if ( ds_persistent_only && persistent_attr == false )
{
ostringstream oss;
std::ostringstream oss;
oss << "This Datastore only accepts persistent images.";
failure_response(INTERNAL, allocate_error(oss.str()), att);