style: 优化部分 initializer_list 的格式

This commit is contained in:
zzyyyl
2022-08-29 12:25:55 +08:00
parent 84bbe7de1e
commit e9f21c0944
10 changed files with 66 additions and 33 deletions

View File

@@ -1218,10 +1218,12 @@ cv::Mat asst::Controller::get_image(bool raw)
}
if (!success && !need_exit()) {
Log.error(__FUNCTION__, "screencap failed!");
json::value info = json::object { { "uuid", m_uuid },
{ "what", "ScreencapFailed" },
{ "why", "ScreencapFailed" },
{ "details", json::object {} } };
json::value info = json::object {
{ "uuid", m_uuid },
{ "what", "ScreencapFailed" },
{ "why", "ScreencapFailed" },
{ "details", json::object {} },
};
m_callback(AsstMsg::ConnectionInfo, info, m_callback_arg);
const static cv::Size d_size(m_scale_size.first, m_scale_size.second);