Skip to content

Commit

Permalink
- corrected GH CI for zipping
Browse files Browse the repository at this point in the history
- fixed some MS analysis issues on uninit vars
  • Loading branch information
chcg committed Sep 19, 2024
1 parent 2048f49 commit 373a96f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI_MS_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
strategy:
fail-fast: false
matrix:
build_configuration: [Release, Debug]
build_platform: [x64, Win32, ARM64]
build_configuration: [Debug]
build_platform: [x64]

steps:
- name: Checkout repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
if: matrix.build_configuration == 'Release'
run: |
7z a NppJumpList_${{ steps.tagName.outputs.tag }}_${{ matrix.build_platform }}.zip .\${{ matrix.build_platform }}\${{ matrix.build_configuration }}\NppJumpList.dll
7z a NppJumpList_${{ steps.tagName.outputs.tag }}_${{ matrix.build_platform }}.zip .\readme.txt"
7z a NppJumpList_${{ steps.tagName.outputs.tag }}_${{ matrix.build_platform }}.zip .\readme.txt
- name: Archive artifacts for ${{ matrix.build_platform }}
Expand Down
8 changes: 4 additions & 4 deletions JumpListFunc.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@

struct JPTaskProps
{
UINT msg;
WPARAM wParam;
LPARAM lParam;
UINT msg = 0;
WPARAM wParam = 0;
LPARAM lParam = 0;
std::basic_string<TCHAR> taskName;
std::basic_string<TCHAR> iconFilePath;
int iconResID;
int iconResID = 0;
};

typedef std::map<std::basic_string<TCHAR>, JPTaskProps> TAvailTasks;
Expand Down
2 changes: 1 addition & 1 deletion PluginDefinition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ SettingsManager *settings;

void pluginInit()
{
TCHAR configPath[MAX_PATH], iniPath[MAX_PATH];
TCHAR configPath[MAX_PATH]{}, iniPath[MAX_PATH]{};
::SendMessage(nppData._nppHandle, NPPM_GETPLUGINSCONFIGDIR, MAX_PATH, (LPARAM)configPath);

if (::PathFileExists(configPath) == FALSE)
Expand Down
7 changes: 0 additions & 7 deletions SettingsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ SettingsManager::SettingsManager(LPCTSTR _iniPath)
{
iniPath = _iniPath;

// default settings
enableJP = true;
showDefRecent = false;
showTasks = true;
showDefFrequent = false;
showCustomRecent = true;

tasks.clear();
tasks.push_back(TEXT("newfile"));
}
Expand Down
11 changes: 6 additions & 5 deletions SettingsManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ class SettingsManager
bool IniReadBool(LPTSTR, LPTSTR, bool&);
bool IniReadString(LPTSTR, LPTSTR, std::basic_string<TCHAR>&);
public:
bool enableJP
,showDefRecent
,showTasks
,showCustomRecent
,showDefFrequent;
// default settings
bool enableJP = true;
bool showDefRecent = false;
bool showTasks = true;
bool showCustomRecent = true;
bool showDefFrequent = false;

std::vector<std::basic_string<TCHAR> > tasks;

Expand Down

0 comments on commit 373a96f

Please sign in to comment.