std::string_view 的使用
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "File_Gather_Widget.h"
|
||||
#include <string_view>
|
||||
|
||||
namespace Psc {
|
||||
void File_Gather_Widget::append(const std::uint8_t *data, size_t size) {
|
||||
@@ -36,7 +37,7 @@ void File_Gather_Widget::Config::from_json(Psc::JSON* that_json) {
|
||||
|
||||
|
||||
// 缓存文件目录 和 文件缓冲区大小
|
||||
File_Gather_Widget::File_Gather_Widget(const std::string& id) : Base_Cache(id) {
|
||||
File_Gather_Widget::File_Gather_Widget(std::string_view id) : Base_Cache(id) {
|
||||
auto layout = new QVBoxLayout(this);
|
||||
|
||||
value = new Text_Shower();
|
||||
|
||||
Reference in New Issue
Block a user