Skip to content

Commit

Permalink
static rfplugin fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Ruzzenenti committed Feb 15, 2018
1 parent 3c2aa04 commit e6deab9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/template/yarp_plugin_RFModule.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#ifdef YARP_STATIC_PLUGIN
YARP_PLUGIN_EXPORT void add_owned_@YARPPLUG_NAME@(const char *owner) {
yarp::os::RFModuleFactory::AddModule("@YARPPLUG_NAME@", [](){return (RFModule*)new @YARPPLUG_TYPE@});
yarp::os::RFModuleFactory::AddModule("@YARPPLUG_NAME@", [](){return (yarp::os::RFModule*)new @YARPPLUG_TYPE@;});
}
#endif

Expand Down
2 changes: 1 addition & 1 deletion cmake/template/yarp_plugin_rfmodule.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#ifdef YARP_STATIC_PLUGIN
YARP_PLUGIN_EXPORT void add_owned_@YARPPLUG_NAME@(const char *owner) {
yarp::os::RFModuleFactory::AddModule("@YARPPLUG_NAME@", [](){return (RFModule*)new @YARPPLUG_TYPE@});
yarp::os::RFModuleFactory::AddModule("@YARPPLUG_NAME@", [](){return (yarp::os::RFModule*)new @YARPPLUG_TYPE@;});
}
#endif

Expand Down

0 comments on commit e6deab9

Please sign in to comment.