Skip to content

Commit 81e9349

Browse files
committed
All fixes from bitshares/bitshares-fc#120 except strings
1 parent 78f8427 commit 81e9349

File tree

35 files changed

+36
-1216
lines changed

35 files changed

+36
-1216
lines changed

external_plugins/multiparty_messaging/include/sophiatx/plugins/multiparty_messaging/multiparty_messaging_api.hpp

+7-8
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
#include <fc/optional.hpp>
99
#include <fc/variant.hpp>
10-
#include <fc/vector.hpp>
1110

1211
namespace sophiatx { namespace plugins { namespace multiparty_messaging {
1312

@@ -30,7 +29,7 @@ class api_group_object {
3029

3130
string description;
3231

33-
vector < account_name_type > members;
32+
std::vector < account_name_type > members;
3433
account_name_type admin;
3534

3635
fc::sha256 group_key;
@@ -49,8 +48,8 @@ class api_message_object {
4948
account_name_type group_name;
5049
uint32_t sequence;
5150
account_name_type sender;
52-
vector < account_name_type > recipients;
53-
vector<char> data;
51+
std::vector < account_name_type > recipients;
52+
std::vector<char> data;
5453
bool system_message = false;
5554
};
5655

@@ -82,7 +81,7 @@ struct list_messages_args{
8281
typedef vector<api_message_object> list_messages_return;
8382

8483
struct create_group_args{
85-
vector<account_name_type> members;
84+
std::vector<account_name_type> members;
8685
string description;
8786
account_name_type admin;
8887
};
@@ -94,7 +93,7 @@ struct create_group_return{
9493

9594
struct add_group_participants_args{
9695
account_name_type group_name;
97-
vector<account_name_type> new_members;
96+
std::vector<account_name_type> new_members;
9897
account_name_type admin;
9998
bool check_members;
10099
};
@@ -103,7 +102,7 @@ typedef std::map<account_name_type, group_meta> add_group_participants_return;
103102

104103
struct delete_group_participants_args{
105104
account_name_type group_name;
106-
vector<account_name_type> deleted_members;
105+
std::vector<account_name_type> deleted_members;
107106
account_name_type admin;
108107
bool check_members;
109108
};
@@ -128,7 +127,7 @@ typedef std::map<account_name_type, group_meta> disband_group_return;
128127
struct send_group_message_args{
129128
account_name_type group_name;
130129
account_name_type sender;
131-
vector<char> data;
130+
std::vector<char> data;
132131
};
133132

134133
typedef std::map<account_name_type, group_meta> send_group_message_return;

external_plugins/track_and_trace/include/sophiatx/plugins/track_and_trace/track_and_trace_api.hpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
#include <fc/optional.hpp>
88
#include <fc/variant.hpp>
9-
#include <fc/vector.hpp>
109

1110
namespace sophiatx { namespace plugins { namespace track_and_trace_plugin {
1211

@@ -32,7 +31,7 @@ struct get_holdings_args
3231

3332
struct get_holdings_return
3433
{
35-
vector<tracked_object_name_type> serials;
34+
std::vector<tracked_object_name_type> serials;
3635
};
3736

3837
struct get_transfer_requests_args
@@ -42,7 +41,7 @@ struct get_transfer_requests_args
4241

4342
struct get_transfer_requests_return
4443
{
45-
vector<tracked_object_name_type> serials;
44+
std::vector<tracked_object_name_type> serials;
4645
};
4746

4847
struct get_item_details_args
@@ -77,7 +76,7 @@ struct tracked_object_history_item{
7776

7877
struct get_tracked_object_history_return
7978
{
80-
vector<tracked_object_history_item> history_items;
79+
std::vector<tracked_object_history_item> history_items;
8180
};
8281

8382
class track_and_trace_api

libraries/fc/include/fc/crypto/equihash.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#pragma once
22
#include <fc/crypto/sha256.hpp>
3-
#include <fc/vector.hpp>
43

54
namespace fc { namespace equihash {
65

libraries/fc/include/fc/crypto/sha1.hpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
#pragma once
22
#include <fc/fwd.hpp>
3-
#include <fc/string.hpp>
3+
#include <string>
44

55
namespace fc{
66

77
class sha1
88
{
99
public:
1010
sha1();
11-
explicit sha1( const string& hex_str );
11+
explicit sha1( const std::string& hex_str );
1212

13-
string str()const;
14-
operator string()const;
13+
std::string str()const;
14+
operator std::string()const;
1515

1616
char* data()const;
1717
size_t data_size()const { return 20; }
1818

1919
static sha1 hash( const char* d, uint32_t dlen );
20-
static sha1 hash( const string& );
20+
static sha1 hash( const std::string& );
2121

2222
template<typename T>
2323
static sha1 hash( const T& t )

libraries/fc/include/fc/crypto/sha224.hpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <unordered_map>
33
#include <fc/fwd.hpp>
44
#include <fc/io/raw_fwd.hpp>
5-
#include <fc/string.hpp>
5+
66

77
namespace fc
88
{
@@ -11,16 +11,16 @@ class sha224
1111
{
1212
public:
1313
sha224();
14-
explicit sha224( const string& hex_str );
14+
explicit sha224( const std::string& hex_str );
1515

16-
string str()const;
17-
operator string()const;
16+
std::string str()const;
17+
operator std::string()const;
1818

1919
char* data()const;
2020
size_t data_size()const { return 224 / 8; }
2121

2222
static sha224 hash( const char* d, uint32_t dlen );
23-
static sha224 hash( const string& );
23+
static sha224 hash( const std::string& );
2424

2525
template<typename T>
2626
static sha224 hash( const T& t )

libraries/fc/include/fc/io/raw_unpack_file.hpp

-24
This file was deleted.

libraries/fc/include/fc/make_fused.hpp

-26
This file was deleted.

libraries/fc/include/fc/network/http/connection.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
2-
#include <fc/vector.hpp>
32
#include <fc/string.hpp>
43
#include <memory>
4+
#include <vector>
55

66
namespace fc {
77
namespace ip { class endpoint; }

libraries/fc/include/fc/network/resolve.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#pragma once
2-
#include <fc/vector.hpp>
32
#include <fc/network/ip.hpp>
43

54
namespace fc

libraries/fc/include/fc/network/tcp_socket.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ namespace fc {
5252
friend class tcp_server;
5353
class impl;
5454
#ifdef _WIN64
55-
fc::fwd<impl,0x81> my;
55+
fc::fwd<impl,0x88> my;
5656
#else
5757
fc::fwd<impl,0x54> my;
5858
#endif

libraries/fc/include/fc/noncopyable.hpp

-14
This file was deleted.

libraries/fc/include/fc/reflect/typename.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <deque>
44
#include <map>
55
#include <vector>
6+
#include <string>
67

78
#include <fc/string.hpp>
89
#include <fc/optional.hpp>

0 commit comments

Comments
 (0)