1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-09 09:57:23 +03:00

feature #4217: Constness change for some MarketPlaceApp methods

This commit is contained in:
Ruben S. Montero 2016-01-29 10:28:07 +01:00
parent 35035eceb7
commit f0006da6e1
2 changed files with 7 additions and 7 deletions

View File

@ -122,7 +122,7 @@ public:
* @param tmp The template object
* @param error_str Returns the error reason, if any
*/
void to_template(Template * tmpl);
void to_template(Template * tmpl) const;
/**
* Enable or disable the app. A disabled app cannot be exported
@ -175,28 +175,28 @@ public:
return origin_id;
};
const string& get_source()
const string& get_source() const
{
return source;
}
const string& get_md5()
const string& get_md5() const
{
return md5;
}
long long get_size()
long long get_size() const
{
return size_mb;
}
const string& get_format()
const string& get_format() const
{
return format;
}
MarketPlaceAppState get_state()
MarketPlaceAppState get_state() const
{
return state;
}

View File

@ -411,7 +411,7 @@ int MarketPlaceApp::enable(bool enable, string& error_str)
/* --------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------- */
void MarketPlaceApp::to_template(Template * tmpl)
void MarketPlaceApp::to_template(Template * tmpl) const
{
tmpl->replace("FROM_APP_NAME", get_name());
tmpl->replace("PATH", get_source());