std::string_view 的使用

This commit is contained in:
2026-06-29 09:40:54 +08:00
parent cc3f6037e7
commit 8c8cc8707b
6 changed files with 12 additions and 6 deletions
+2 -1
View File
@@ -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();