mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-25 02:50:08 +03:00
feature #4217: Postion ostringstreams at the end when initialized with a
string
This commit is contained in:
parent
e0337999af
commit
f548c1d2ad
@ -29,7 +29,8 @@ static int master_allocate(MarketPlaceApp * mp, string& error)
|
||||
vector<xmlrpc_c::value> values;
|
||||
|
||||
std::string mp_xml;
|
||||
std::ostringstream oss("Cannot allocate marketapp at federation master: ");
|
||||
std::ostringstream oss("Cannot allocate marketapp at federation master: ",
|
||||
std::ios::ate);
|
||||
|
||||
mp->to_xml(mp_xml);
|
||||
|
||||
@ -158,7 +159,8 @@ int MarketPlaceAppPool::drop(PoolObjectSQL * objsql, std::string& error_msg)
|
||||
xmlrpc_c::value result;
|
||||
vector<xmlrpc_c::value> values;
|
||||
|
||||
std::ostringstream oss("Cannot drop marketapp at federation master: ");
|
||||
std::ostringstream oss("Cannot drop marketapp at federation master: ",
|
||||
std::ios::ate);
|
||||
|
||||
try
|
||||
{
|
||||
@ -268,7 +270,8 @@ int MarketPlaceAppPool::update(PoolObjectSQL * objsql)
|
||||
xmlrpc_c::value result;
|
||||
vector<xmlrpc_c::value> values;
|
||||
|
||||
std::ostringstream oss("Cannot update marketapp at federation master: ");
|
||||
std::ostringstream oss("Cannot update marketapp at federation master: ",
|
||||
std::ios::ate);
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -360,7 +360,7 @@ static int delete_action(
|
||||
std::string source;
|
||||
std::string error;
|
||||
|
||||
std::ostringstream eoss("Error removing app from marketplace");
|
||||
std::ostringstream eoss("Error removing app from marketplace", std::ios::ate);
|
||||
|
||||
MarketPlaceApp * app = apppool->get(id, true);
|
||||
|
||||
|
@ -141,7 +141,8 @@ int MarketPlacePool::allocate(
|
||||
vector<xmlrpc_c::value> values;
|
||||
|
||||
std::string mp_xml;
|
||||
std::ostringstream oss("Cannot allocate market at federation master: ");
|
||||
std::ostringstream oss("Cannot allocate market at federation master: ",
|
||||
std::ios::ate);
|
||||
|
||||
mp->to_xml(mp_xml);
|
||||
delete mp;
|
||||
|
Loading…
x
Reference in New Issue
Block a user