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