mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-26 07:55:44 -04:00
continue on switching QString and QByteArray
This commit is contained in:
parent
e4ce32bef8
commit
6a4cdcc471
28 changed files with 525 additions and 397 deletions
|
@ -50,9 +50,9 @@ bool SetConfCommand::isSuccessful() const
|
|||
return statusCode() == 250;
|
||||
}
|
||||
|
||||
ByteArray SetConfCommand::build(const ByteArray &key, const ByteArray &value)
|
||||
ByteArray SetConfCommand::build(const std::string &key, const std::string &value)
|
||||
{
|
||||
return build(std::list<std::pair<ByteArray, ByteArray> > { std::make_pair(key, value) } );
|
||||
return build(std::list<std::pair<std::string, std::string> > { std::make_pair(key, value) } );
|
||||
}
|
||||
|
||||
// ByteArray SetConfCommand::build(const std::list<std::pair<ByteArray,ByteArray> > &data)
|
||||
|
@ -74,7 +74,7 @@ ByteArray SetConfCommand::build(const ByteArray &key, const ByteArray &value)
|
|||
// return build(out);
|
||||
// }
|
||||
|
||||
ByteArray SetConfCommand::build(const std::list<std::pair<ByteArray, ByteArray> >& data)
|
||||
ByteArray SetConfCommand::build(const std::list<std::pair<std::string, std::string> >& data)
|
||||
{
|
||||
ByteArray out(m_resetMode ? "RESETCONF" : "SETCONF");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue