Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b23491f

Browse files
author
Davide Faconti
committed
fix minor issues
1 parent 003c8e6 commit b23491f

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

include/behaviortree_cpp_v3/bt_parser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Parser
1616
public:
1717
Parser() = default;
1818

19-
~Parser() = default;
19+
virtual ~Parser() = default;
2020

2121
Parser(const Parser& other) = delete;
2222
Parser& operator=(const Parser& other) = delete;

include/behaviortree_cpp_v3/utils/simple_string.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ class SimpleString
3131
{
3232
}
3333

34+
SimpleString& operator = (const SimpleString& other)
35+
{
36+
_data = other._data;
37+
_size = other._size;
38+
return *this;
39+
}
40+
3441
~SimpleString()
3542
{
3643
if ( _size >= sizeof(void*) && _data.ptr )

sample_nodes/crossdoor_nodes.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#include "behaviortree_cpp_v3/bt_factory.h"
24

35
using namespace BT;

src/basic_types.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,6 @@ std::string convertFromString<std::string>(StringView str)
101101
}
102102

103103

104-
template <>
105-
const char* convertFromString<const char*>(StringView str)
106-
{
107-
return static_cast<std::string>(str).c_str();
108-
}
109-
110104
template <>
111105
int convertFromString<int>(StringView str)
112106
{

0 commit comments

Comments
 (0)