From f885eeb8b18e580ec54f298be0633c69dc1a1ff2 Mon Sep 17 00:00:00 2001 From: taynpg Date: Wed, 23 Oct 2024 15:12:56 +0800 Subject: [PATCH] =?UTF-8?q?add=EF=BC=9A=E6=B7=BB=E5=8A=A0=E4=B8=80?= =?UTF-8?q?=E4=B8=AAvscode=E9=85=8D=E7=BD=AE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 40 ++++++++++++++++++++++++++++++++++++++++ FunctionImp.cpp | 7 ++----- 2 files changed, 42 insertions(+), 5 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..2deef03 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,40 @@ +{ + "files.autoSave": "onFocusChange", + "editor.fontSize": 13, + "editor.fontFamily": "'FiraCode Nerd Font Mono', 'FiraCode Nerd Font Mono', 'FiraCode Nerd Font Mono'", + "cmake.configureOnOpen": true, + "cmake.debugConfig": { + "console": "integratedTerminal", + "setupCommands": [ + { + "description": "-gdb-set charset utf-8", + "text": "-gdb-set charset UTF-8" + }, + { + "description": "Enable gdb pretty-printing", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ], + "args": [ + ] + }, + "cmake.environment": { + "PATH": "${env:PATH};D:/library/wxWidgets/lib/vc_x64_dll", + "LD_LIBRARY_PATH": "$LD_LIBRARY_PATH:" + }, + // "cmake.configureSettings": { + // "CMAKE_TOOLCHAIN_FILE": "${env:VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" + // }, + "cmake.options.statusBarVisibility": "visible", + "cmake.generator": "Ninja", + "C_Cpp.default.compileCommands": "${workspaceRoot}/build/compile_commands.json", + "C_Cpp.default.cppStandard": "c++17", + "C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools", + "editor.inlayHints.enabled": "off", + "editor.unicodeHighlight.allowedLocales": { + "ja": true, + "zh-hant": true, + "zh-hans": true + } +} \ No newline at end of file diff --git a/FunctionImp.cpp b/FunctionImp.cpp index 69e201b..dd62f00 100644 --- a/FunctionImp.cpp +++ b/FunctionImp.cpp @@ -31,7 +31,7 @@ wxArrayString CFunPack::get_depend_on(const wxString& bin, const wxArrayString& return array; } - char buffer[1024]{}; + char buffer[1024]{}; wxString result{}; while (std::fgets(buffer, sizeof(buffer), pf)) { result.append(buffer); @@ -48,7 +48,6 @@ std::list CFunPack::parse_result(const wxArrayString& array) wxArrayString bk_arry = array; for (auto& data : bk_arry) { - if (data.empty()) { continue; } @@ -77,9 +76,7 @@ std::list CFunPack::parse_result(const wxArrayString& array) return ret; } - -CFunInstall::CFunInstall() -= default; +CFunInstall::CFunInstall() = default; bool CFunInstall::install(const wxString& file, const wxString& ico) {