Skip to content

Commit

Permalink
Move Windows visibility macros to header files
Browse files Browse the repository at this point in the history
Signed-off-by: Audrow Nash <audrow.nash@gmail.com>
  • Loading branch information
audrow authored and paudrow committed May 7, 2021
1 parent fe2ea9c commit 9de7a97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,17 @@

#include <string>

#include "rviz_default_plugins/visibility_control.hpp"

namespace rviz_default_plugins
{
namespace displays
{

RVIZ_DEFAULT_PLUGINS_PUBLIC
std::string getTransportFromTopic(const std::string & topic);

RVIZ_DEFAULT_PLUGINS_PUBLIC
std::string getBaseTopicFromTopic(const std::string & topic);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <string>

#include "rviz_default_plugins/displays/image/get_transport_from_topic.hpp"
#include "rviz_default_plugins/visibility_control.hpp"

namespace rviz_default_plugins
{
Expand All @@ -44,7 +43,6 @@ bool isRawTransport(const std::string & topic)
last_subtopic != "theora";
}

RVIZ_DEFAULT_PLUGINS_PUBLIC
std::string getTransportFromTopic(const std::string & topic)
{
if (isRawTransport(topic)) {
Expand All @@ -53,8 +51,6 @@ std::string getTransportFromTopic(const std::string & topic)
return topic.substr(topic.find_last_of('/') + 1);
}


RVIZ_DEFAULT_PLUGINS_PUBLIC
std::string getBaseTopicFromTopic(const std::string & topic)
{
if (isRawTransport(topic)) {
Expand Down

0 comments on commit 9de7a97

Please sign in to comment.