Skip to content

Commit b367c70

Browse files
committed
cosmetic changes
1 parent d30e44d commit b367c70

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

include/behaviortree_cpp/action_node.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class SyncActionNode : public ActionNodeBase
7878
class SimpleActionNode : public SyncActionNode
7979
{
8080
public:
81-
typedef std::function<NodeStatus(TreeNode&)> TickFunctor;
81+
using TickFunctor = std::function<NodeStatus(TreeNode&)>;
8282

8383
// You must provide the function to call when tick() is invoked
8484
SimpleActionNode(const std::string& name, TickFunctor tick_functor,

include/behaviortree_cpp/behavior_tree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void applyRecursiveVisitor(TreeNode* root_node,
6464
*/
6565
void printTreeRecursively(const TreeNode* root_node, std::ostream& stream = std::cout);
6666

67-
typedef std::vector<std::pair<uint16_t, uint8_t>> SerializedTreeStatus;
67+
using SerializedTreeStatus = std::vector<std::pair<uint16_t, uint8_t>>;
6868

6969
/**
7070
* @brief buildSerializedStatusSnapshot can be used to create a buffer that can be stored

include/behaviortree_cpp/blackboard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Blackboard
2828
{
2929

3030
public:
31-
typedef std::shared_ptr<Blackboard> Ptr;
31+
using Ptr = std::shared_ptr<Blackboard>;
3232

3333
protected:
3434
// This is intentionally protected. Use Blackboard::create instead

include/behaviortree_cpp/condition_node.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class ConditionNode : public LeafNode
4949
class SimpleConditionNode : public ConditionNode
5050
{
5151
public:
52-
typedef std::function<NodeStatus(TreeNode&)> TickFunctor;
52+
using TickFunctor = std::function<NodeStatus(TreeNode&)>;
5353

5454
// You must provide the function to call when tick() is invoked
5555
SimpleConditionNode(const std::string& name, TickFunctor tick_functor,

include/behaviortree_cpp/decorator_node.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class DecoratorNode : public TreeNode
5353
class SimpleDecoratorNode : public DecoratorNode
5454
{
5555
public:
56-
typedef std::function<NodeStatus(NodeStatus, TreeNode&)> TickFunctor;
56+
using TickFunctor = std::function<NodeStatus(NodeStatus, TreeNode&)>;
5757

5858
// You must provide the function to call when tick() is invoked
5959
SimpleDecoratorNode(const std::string& name, TickFunctor tick_functor,

include/behaviortree_cpp/flatbuffers/bt_flatbuffer_helper.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
namespace BT
77
{
8-
typedef std::array<uint8_t, 12> SerializedTransition;
8+
9+
using SerializedTransition = std::array<uint8_t, 12>;
910

1011
inline Serialization::NodeType convertToFlatbuffers(BT::NodeType type)
1112
{

include/behaviortree_cpp/loggers/abstract_logger.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ enum class TimestampType
1212
relative
1313
};
1414

15-
typedef std::array<uint8_t, 12> SerializedTransition;
16-
1715
class StatusChangeLogger
1816
{
1917
public:
@@ -56,7 +54,7 @@ class StatusChangeLogger
5654
bool show_transition_to_idle_;
5755
std::vector<TreeNode::StatusChangeSubscriber> subscribers_;
5856
TimestampType type_;
59-
BT::TimePoint first_timestamp_;
57+
BT::TimePoint first_timestamp_ = {};
6058
};
6159

6260
//--------------------------------------------

include/behaviortree_cpp/loggers/bt_file_logger.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <deque>
66
#include <array>
77
#include "behaviortree_cpp/loggers/abstract_logger.h"
8+
#include "behaviortree_cpp/flatbuffers/bt_flatbuffer_helper.h"
89

910
namespace BT
1011
{

0 commit comments

Comments
 (0)