Fix clang build errors and warnings
This commit is contained in:
parent
262dca00ef
commit
fc1885f9fe
@ -32,8 +32,8 @@ namespace matrix{
|
||||
class connection
|
||||
{
|
||||
protected:
|
||||
mutable raii::curler m_curl;
|
||||
std::shared_ptr<internal::session_info> m_ses;
|
||||
mutable raii::curler m_curl = {};
|
||||
std::shared_ptr<internal::session_info> m_ses = {};
|
||||
protected:
|
||||
connection(const std::shared_ptr<internal::session_info>&);
|
||||
connection(const connection&) = default;
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
|
||||
namespace matrix{
|
||||
|
||||
struct client;
|
||||
class client;
|
||||
|
||||
struct file_details{
|
||||
raii::binary data;
|
||||
@ -45,9 +45,9 @@ namespace matrix{
|
||||
{
|
||||
friend class matrix::client;
|
||||
protected:
|
||||
raii::rjp_string m_fileurl;
|
||||
raii::string m_filename;
|
||||
raii::string m_mimetype;
|
||||
raii::rjp_string m_fileurl = {};
|
||||
raii::string m_filename = {};
|
||||
raii::string m_mimetype = {};
|
||||
size_t m_filesize = 0;
|
||||
|
||||
public:
|
||||
|
||||
@ -99,10 +99,10 @@ namespace matrix::sync{
|
||||
RJP_value* response::_find_room_list(const char* segment)const{
|
||||
RJP_search_res res = rjp_search_member(m_root.get(), "rooms", 0);
|
||||
if(!res.value)
|
||||
return {nullptr};
|
||||
return nullptr;
|
||||
res = rjp_search_member(res.value, segment, 0);
|
||||
if(!res.value)
|
||||
return {nullptr};
|
||||
return {rjp_get_member(res.value)};
|
||||
return nullptr;
|
||||
return rjp_get_member(res.value);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user