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:
parent
35035eceb7
commit
f0006da6e1
@ -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;
|
||||
}
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user