Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use common::replaceAll instead of boost
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
scpeters committed Mar 7, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent dd3d25b commit 7edb013
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions gazebo/gui/plot/Palette.cc
Original file line number Diff line number Diff line change
@@ -18,7 +18,6 @@
#include <set>
#include <string>
#include <vector>
#include <boost/algorithm/string.hpp>
#include <google/protobuf/message.h>
#include <ignition/transport/Node.hh>

@@ -873,7 +872,7 @@ void Palette::IntrospectionUpdateSlot(const std::set<std::string> &_items)
auto pathParts = common::split(pathStr, "/");
for (auto & part : pathParts)
{
boost::replace_all(part, "%2f", "/");
part = common::replaceAll(part, "%2f", "/");
}

QStandardItem *previousItem = nullptr;
6 changes: 3 additions & 3 deletions gazebo/physics/Base.cc
Original file line number Diff line number Diff line change
@@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#include <boost/algorithm/string.hpp>
#include "gazebo/common/Assert.hh"
#include "gazebo/common/CommonIface.hh"
#include "gazebo/common/Console.hh"
#include "gazebo/common/Exception.hh"
#include "gazebo/common/SdfFrameSemantics.hh"
@@ -385,7 +385,7 @@ common::URI Base::URI() const
if (p->GetParent())
{
std::string escapedParentName = p->GetName();
boost::replace_all(escapedParentName, "/", "%2f");
escapedParentName = common::replaceAll(escapedParentName, "/", "%2f");
uri.Path().PushFront(escapedParentName);
uri.Path().PushFront(p->TypeStr());
}
@@ -395,7 +395,7 @@ common::URI Base::URI() const

uri.Path().PushBack(this->TypeStr());
std::string escapedName = this->GetName();
boost::replace_all(escapedName, "/", "%2f");
escapedName = common::replaceAll(escapedName, "/", "%2f");
uri.Path().PushBack(escapedName);
uri.Path().PushFront(this->world->Name());
uri.Path().PushFront("world");

0 comments on commit 7edb013

Please sign in to comment.